
feh at fehcom
Feb 7, 2012, 2:14 AM
Post #2 of 13
(2582 views)
Permalink
|
|
Re: How to: qmail-smtpd for roaming users.
[In reply to]
|
|
Hi Am 07.02.2012 um 10:12 schrieb FC Mario Patty: > Hi guys, > > I hope this is the right place to ask. We use qmail-ldap (qmailrocks installation) for our mail server for some time. Actually, this is not 100% the right place .... but lets try. > To give people access to qmail-smtpd, we used to configure /var/qmail/control/qmail-smtpd.rules. Usually we use this configuration: > > > 127.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED="",QMAILQUEUE="/var/qmail/bin/simscan" > 192.168.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED="",QMAILQUEUE="/var/qmail/bin/simscan" > :allow,QMAILQUEUE="/var/qmail/bin/simscan",RETURNMXCHECK="" > > Now we want to let roaming users to be able to use qmail-smtpd from anywhere outside from local LAN, so we change qmail-smtpd.rules into > > > 127.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED="",QMAILQUEUE="/var/qmail/bin/simscan" > 192.168.:allow,RELAYCLIENT="",SMTPAUTH="",AUTHREQUIRED="",QMAILQUEUE="/var/qmail/bin/simscan" > :allow,RELAYCLIENT="",SMTPAUTH="",QMAILQUEUE="/var/qmail/bin/simscan" > :allow,QMAILQUEUE="/var/qmail/bin/simscan",RETURNMXCHECK="" > You have two rules for the same condition. his is bad. The typical way would be: > :allow,SMTPAUTH="",QMAILQUEUE="/var/qmail/bin/simscan" > It is works (we can send to or receive email from gmail), with exception that we can send without authentication either. ?? Auth for sending (=qmail-remote) works independently from receiving. > If we added AUTHREQUIRED="" in the third line, gmail cannot send email to our server. Of course not -- anybody needs to authenticate. > If we switched the third and fourth line (:allow,RELAYCLIENT line and :allow,QMAILQUEUE line), then qmail will never read (or act) the last line. Is there something we're missing here*? OR should we cooperate SMTPAUTH with PBS (we have > > 127.0.0.1:allow,NOPBS="" > # default allow > :allow > > in /var/qmail/control/qmail-pop3d.rules. > > * thinking about using SENDERCHECK too, but we still need authentication. > > Thank-you in advance. > For a deeper understanding, read my SMTP Auth tutorial http://www.fehcom.de/qmail/smtpauth.html regards. --eh. > > Best regards, > Mario -- Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de | PGP Key-Id: 7E4034BE
|