Hi.
I'm upgrading from a previous version of qmail-ldap to the 20040701 patch and am having trouble (i think) with auth_smtp
I've got an older version of qmail-ldap qmail-smtpd running on port 25 and it is working just fine... I'm upgrading because I want RCPTCHECK functionality... doesn't everybody get way too much spam as well!?
when I connect to the newly compiled qmail-smtpd I get "warning: auth_error: authorization failed (file descriptor not open)" messages and am unable to send mail. can anybody give me a hint as to what I need to do to fix this?
thanks for any help!
-- Jonathan
here are some details:
environment vars are the following:
[EMAIL PROTECTED] /service/smtp # grep '' /service/smtp/env/* /service/smtp/env/AUTHPREPEND:Authenticated user: /service/smtp/env/DEBUGLEVEL:511 /service/smtp/env/LOGLEVEL:511 /service/smtp/env/RCPTCHECK:1 /service/smtp/env/SMTPAUTH:1
here's what happens when I start the 20040701 patched qmail-smtpd and try to connect via telnet
(server side)
[EMAIL PROTECTED] /service/smtp # envdir /service/smtp/env /usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -v -R -H -x /service/smtp/tcprules/rules.cdb -u qmaild -g qmail 0 2525 /arc/qmail-1.03_src_tree/qmail-smtpd /arc/qmail-1.03_src_tree/auth_smtp /bin/true 2>&1
tcpserver: status: 0/40
tcpserver: status: 1/40
tcpserver: pid 20945 from 24.17.159.178
tcpserver: ok 20945 nospam.abhost.net:211.57.206.5:2525 :24.17.159.78::60000
qmail-smtpd 20945: connection from 24.17.159.78 (unknown) to nospam.abhost.net
qmail-smtpd 20945: enabled options: rcptcheck smtp-auth
qmail-smtpd 20945: remote ehlo: test
qmail-smtpd 20945: mail from: [EMAIL PROTECTED]
qmail-smtpd 20945: mail from: [EMAIL PROTECTED]
qmail-smtpd 20945: rcpt to: [EMAIL PROTECTED]
qmail-smtpd 20945: recipient verify, recipient not in goodmailaddr
qmail-smtpd 20945: recipient verify, recipient is local
qmail-smtpd 20945: recipient verify soft error
qmail-smtpd 20945: temporary ldap lookup failure
qmail-smtpd 20945: quit, closing connection
tcpserver: end 20945 status 0
tcpserver: status: 0/40
(client side)
[EMAIL PROTECTED] /home/jrs/abhost/balsa/qmail_tools $ telnet nospam.abhost.net 2525
Trying 211.57.206.5...
Connected to nospam.
Escape character is '^]'.
220 abhost.net ESMTP
ehlo test
250-abhost.net
250-PIPELINING
250-AUTH LOGIN PLAIN
250 8BITMIME
mail from: [EMAIL PROTECTED]
250 ok
rcpt to: [EMAIL PROTECTED]
451 temporary ldap lookup failure, try again later
quit
221 abhost.net Goodbye.
Connection closed by foreign host.
here's what happens when I use a mail client (thunderbird on linux) to send mail via port 2525:
(server side)
[EMAIL PROTECTED] /service/smtp # envdir /service/smtp/env /usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -v -R -H -x /service/smtp/tcprules/rules.cdb -u qmaild -g qmail 0 2525 /arc/qmail-1.03_src_tree/qmail-smtpd /arc/qmail-1.03_src_tree/auth_smtp /bin/true 2>&1
tcpserver: status: 0/40
tcpserver: status: 1/40
tcpserver: pid 15427 from 24.17.159.78
tcpserver: ok 15427 nospam.abhost.net:211.57.206.5:2525 :24.17.159.78::60002
qmail-smtpd 15427: connection from 24.17.159.78 (unknown) to nospam.abhost.net
qmail-smtpd 15427: enabled options: rcptcheck smtp-auth
qmail-smtpd 15427: remote ehlo: abhost.net
qmail-smtpd 15427: auth plain
warning: auth_error: authorization failed (file descriptor not open)
qmail-smtpd 15427: authentication failed: temporary authentication failure (#4.3.0)
qmail-smtpd 15427: auth login
warning: auth_error: authorization failed (file descriptor not open)
qmail-smtpd 15427: authentication failed: temporary authentication failure (#4.3.0)
qmail-smtpd 15427: read error or connection closed tcpserver: end 15427 status 256 tcpserver: status: 0/40
in case it's of any use to anyone, my live, functioning qmail-ldap smtpd starts with the following run script:
[EMAIL PROTECTED] /service/smtp # cat run
#!/bin/sh cd /service/smtp/tcprules; make; cd /service/smtp 2>&1
exec envdir ./env /usr/local/bin/softlimit -m 4000000 \
/usr/local/bin/tcpserver -v -R -H -x tcprules/rules.cdb -u qmaild -g qmail 0 smtp \
/usr/local/bin/rblsmtpd \
/usr/local/bin/rblsmtpd -rrelays.ordb.org \
/var/qmail/bin/qmail-smtpd \
/var/qmail/bin/auth_smtp /bin/true 2>&1
my qmail/control dir looks like so: (and is working just fine for the functioning qmail-smtpd that is currently running on port 25)
[EMAIL PROTECTED] /service/smtp # l /var/qmail/control/ldap*
-rw-r--r-- 1 qmaild qmail 31 Sep 12 2002 /var/qmail/control/ldapbasedn
-rw-r--r-- 1 qmaild qmail 5 Sep 12 2002 /var/qmail/control/ldapdefaultdotmode
-rw-r--r-- 1 qmaild qmail 4 Sep 16 2002 /var/qmail/control/ldapgid
-rw-r--r-- 1 qmaild qmail 31 Sep 13 2002 /var/qmail/control/ldaplogin
-rw-r--r-- 1 qmaild qmail 11 Sep 13 2002 /var/qmail/control/ldappassword
-rw-r--r-- 1 qmaild qmail 16 Sep 12 2002 /var/qmail/control/ldapserver
-rw-r--r-- 1 qmaild qmail 4 Sep 16 2002 /var/qmail/control/ldapuid
-rw-r--r-- 1 qmaild qmail 7 Sep 12 2002 /var/qmail/control/ldapusername
