|
|
|
|
|
|
| Author |
Message |
Erwin Hoffmann *nix forums addict
Joined: 24 Jan 2005
Posts: 71
|
Posted: Mon Jun 05, 2006 8:24 pm Post subject:
Re: smtp auth
|
|
|
Hi,
At 14:49 05.06.2006 -0400, Michael Di Martino wrote:
| Quote: | Trouble authenticating with mua (outlook 2003)
netqmail installed according to LWQ
smtp auth patch from http://www.fehcom.de
I installed chaeckpassword according to DB's site successfully tested.
[root@mx1 smtpd]# /var/qmail/bin/qmail-popup mx1.riskvectors.com
/bin/checkpassword pwd
+OK <32343.1149533762@mx1.riskvectors.com
user mdm
+OK
pass rush2112
/home/mdm
[root@mx1 smtpd]#
I then added the following to my /var/qmail/supervise/qmail-smtp/run
/var/qmail/bin/qmail-smtpd /bin/checkpassword true 2>&1
And here is my entire run file...
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
#QMAILQUEUE="/var/qmail/bin/simscan" \
#export QMAILQUEUE
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z
"$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open
relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 4000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 96 /usr/local/bin/rblsmtpd \
-r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd /bin/checkpassword true 2>&1
Auth test failed log entry from outlook 2003
2006-06-05 14:56:49.611754500 tcpserver: status: 1/20
2006-06-05 14:56:49.611906500 tcpserver: pid 32361 from 207.251.84.211
2006-06-05 14:56:49.612369500 tcpserver: ok 32361
mx1.riskvectors.com:192.168.1.20:96 :207.251.84.211::64424
2006-06-05 14:56:49.737922500 tcpserver: end 32361 status 256
2006-06-05 14:56:49.737925500 tcpserver: status: 0/20
Is the issue in my run file?
|
Did you read my tutorial about SMTP Auth ?
http://www.fehcom.de/qmail/smtpauth.html
Since qmail runs as user "qmaild" it has no privleges to lookup the
password file for authentication. Thus, you have to make checkpassword
"sticky".
This answer is for the archives.
regards.
--eh.
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24 |
|
| Back to top |
|
 |
Michael Di Martino *nix forums addict
Joined: 09 Jan 2005
Posts: 69
|
Posted: Mon Jun 05, 2006 6:49 pm Post subject:
smtp auth
|
|
|
Trouble authenticating with mua (outlook 2003)
netqmail installed according to LWQ
smtp auth patch from http://www.fehcom.de
I installed chaeckpassword according to DB's site successfully tested.
[root@mx1 smtpd]# /var/qmail/bin/qmail-popup mx1.riskvectors.com
/bin/checkpassword pwd
+OK <32343.1149533762@mx1.riskvectors.com>
user mdm
+OK
pass rush2112
/home/mdm
[root@mx1 smtpd]#
I then added the following to my /var/qmail/supervise/qmail-smtp/run
/var/qmail/bin/qmail-smtpd /bin/checkpassword true 2>&1
And here is my entire run file...
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
#QMAILQUEUE="/var/qmail/bin/simscan" \
#export QMAILQUEUE
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z
"$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open
relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 4000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 96 /usr/local/bin/rblsmtpd \
-r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd /bin/checkpassword true 2>&1
Auth test failed log entry from outlook 2003
2006-06-05 14:56:49.611754500 tcpserver: status: 1/20
2006-06-05 14:56:49.611906500 tcpserver: pid 32361 from 207.251.84.211
2006-06-05 14:56:49.612369500 tcpserver: ok 32361
mx1.riskvectors.com:192.168.1.20:96 :207.251.84.211::64424
2006-06-05 14:56:49.737922500 tcpserver: end 32361 status 256
2006-06-05 14:56:49.737925500 tcpserver: status: 0/20
Is the issue in my run file?
Regards,
Michael |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 4:41 am | All times are GMT
|
|
Loans | Blair Coupons | Loan | Debt Consolidation | Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|