View previous topic :: View next topic |
Author |
Message |
irasnyd Apprentice
Joined: 16 Feb 2003 Posts: 286 Location: Placentia, CA
|
Posted: Thu Aug 14, 2003 6:59 pm Post subject: How to force SMTP AUTH in qmail |
|
|
Does anyone know how I can force everyone that connects to my mailserver (qmail-1.03-r10 ebuild) to use SMTP AUTH (if the mail is going to be relayed)?
Here is my tcp.smtp file:
Code: |
0.0.0.0:allow
127.:allow,RELAYCLIENT=""
:allow
|
Basically what I want to do is not allow any mail that doesnt RCPT to one of the domains that I host to be sent unless they smtp auth with the server.
Another possibility would be to have POP before SMTP, but I dont know how to set this up, and couldn't find a guide with google.
Any help would be appreciated.
Ira |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Fri Aug 15, 2003 4:05 am Post subject: |
|
|
Have you checked out qmail-smtpd-auth? I don't personally use Qmail (Postfix here), but that looks like it does what you want. |
|
Back to top |
|
|
irasnyd Apprentice
Joined: 16 Feb 2003 Posts: 286 Location: Placentia, CA
|
Posted: Fri Aug 15, 2003 6:34 am Post subject: |
|
|
Yep, I've got it compiled in and set up.
I just don't know how to force users to use the AUTH command. |
|
Back to top |
|
|
nharring n00b
Joined: 16 Aug 2003 Posts: 19 Location: Chicago, IL, US
|
Posted: Sat Aug 16, 2003 8:43 pm Post subject: The auth patch forces authentication |
|
|
If a domain being sent to isn't listed in RCPTHOSTS in /var/qmail/control it will not be accepted for relaying unless RELAYCLIENT is set in /etc/tcp.smtp OR by the qmail-smtpd-auth patch. One thing to beware of is that smtpd-auth and relaymailfrom patches clash (though there is a merged patch floating around). Its a one line fix, but I don't remember what it is off the top of my head.
Have you seen unexpected relaying, or are you just asking pre-emptively? |
|
Back to top |
|
|
irasnyd Apprentice
Joined: 16 Feb 2003 Posts: 286 Location: Placentia, CA
|
Posted: Sat Aug 16, 2003 9:11 pm Post subject: |
|
|
I'm just asking preemtively, just to make sure that I dont run an open relay.
irasnyd |
|
Back to top |
|
|
|