niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Qmail
smtp auth
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Erwin Hoffmann
*nix forums addict


Joined: 24 Jan 2005
Posts: 71

PostPosted: Mon Jun 05, 2006 8:24 pm    Post subject: Re: smtp auth Reply with quote

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

PostPosted: Mon Jun 05, 2006 6:49 pm    Post subject: smtp auth Reply with 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?

Regards,
Michael
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 4:41 am | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix smtp authentication using mysql stored user/pass rtresidd Postfix 0 Fri Oct 03, 2008 5:58 am
No new posts Postfix SMTP client issues damber Postfix 1 Sat Apr 19, 2008 11:33 am
No new posts HOW-TO: Deliver many messages over 1 smtp session? Oymakoon Postfix 0 Thu Mar 20, 2008 11:12 am
No new posts Trouble enabling auth on postfix and sasl dklugmann Postfix 0 Fri Feb 29, 2008 11:02 pm
No new posts 2.2.4 mod_authz_owner "forgets" user's auth TJB Apache 0 Fri May 04, 2007 6:44 pm

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
[ Time: 0.1349s ][ Queries: 20 (0.0604s) ][ GZIP on - Debug on ]