I cannot get smtp_auth to authenticate.
I have been running qmail ldap fine for six months. I've now decided to change to smtp_auth.


I keep getting a response of "authentication failure".
Here is what I have done so far:
1) tcpserver config:
127.0.0.1:allow,RELAYCLIENT=""
:allow,SMTPAUTH="",LOGLEVEL="256"
-- So webmail works fine, no auth required.
-- Mail destined for local addresses works fine, no auth required.
-- All relay mail, not local based requires a logon - Great!


2) Start smtpd:
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb \
-u 1002 -g 103 0 smtp recordio \
/var/qmail/bin/qmail-smtpd 2>&1
-- smtpd starts and all IO and log entrys for smtpd echo to the shell.
-- I see the handshake everything works great.


4) Traced out the code in qmail_smtpd.c to the calls to "bin/auth_smtp".
Why doesn't auth_smtp echo as well?
-- Tried recompiling with DEBUG=-DDEBUG
Still no echo, no logging...


5) Went the other direction and checked the LDAP server logs:
SRCH base="XXXX" scope=2 deref=0
filter="(&(objectClass=qmailUser)(uid=XXXX))"
SRCH attr=accountStatus userPassword
SEARCH RESULT tag=101 err=0 nentries=1


-- So LDAP is giving qmail both attributes as it found the uid I attempted to login with.
-- Please also note that I am successfully receiving email using LDAP entries, using LDAP against SAMBA, LDAP for OGO, etc...


Obviously I'm a little green here with Linux programming, but I'm just asking for help to understand how to debug auth_smtp (and of course if anyone has a trick with the authentification, that would also be appreciated).

Thanks!
-rp




Reply via email to