Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to force SMTP AUTH in qmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
irasnyd
Apprentice
Apprentice


Joined: 16 Feb 2003
Posts: 286
Location: Placentia, CA

PostPosted: Thu Aug 14, 2003 6:59 pm    Post subject: How to force SMTP AUTH in qmail Reply with quote

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
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Fri Aug 15, 2003 4:05 am    Post subject: Reply with quote

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
View user's profile Send private message
irasnyd
Apprentice
Apprentice


Joined: 16 Feb 2003
Posts: 286
Location: Placentia, CA

PostPosted: Fri Aug 15, 2003 6:34 am    Post subject: Reply with quote

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
View user's profile Send private message
nharring
n00b
n00b


Joined: 16 Aug 2003
Posts: 19
Location: Chicago, IL, US

PostPosted: Sat Aug 16, 2003 8:43 pm    Post subject: The auth patch forces authentication Reply with quote

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
View user's profile Send private message
irasnyd
Apprentice
Apprentice


Joined: 16 Feb 2003
Posts: 286
Location: Placentia, CA

PostPosted: Sat Aug 16, 2003 9:11 pm    Post subject: Reply with quote

I'm just asking preemtively, just to make sure that I dont run an open relay.

irasnyd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum