Hi all. I've been running qmail successfully for a while, and usually
have been able to find what I need in the various docs, but this one
has me stumped.
I'm running on a pretty up to date (< 1 month) gentoo server.
I fairly recently reconfigured one of my servers to use auth, so that
a user could connect from outside to relay mail. I'm running the
netqmail-1.0.6-r2 ebuild, which includes
netqmail-1.05-tls-smtpauth-20070417.patch.
I followed the instructions in
http://www.fehcom.de/qmail/smtpauth.html. Here's my run file:
--------------------------
#!/bin/bash
# Gentoo Startup script for qmail's SMTP daemon
# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/files/run-qmail-smtpd,v 1.1 2006/02/12 18:42:33 hansmi Exp $
# If you need to edit this file, please look at editing conf-smtpd and
# conf-common first. If you still need to change this file, you should probably
# file a bug on the bugzilla saying what you wanted to change so that
# modifications can be made possible via the configuration files.
# hacked by jrd after reading http://www.fehcom.de/qmail/smtpauth.html
SERVICE=smtp
export SMTPAUTH=''
. /var/qmail/bin/qmail-config-system && \
exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
${QMAIL_TCPSERVER_PRE} \
/usr/bin/tcpserver ${TCPSERVER_OPTS} -x ${TCPSERVER_RULESCDB} \
-c ${MAXCONN} -u ${QMAILDUID} -g ${NOFILESGID} \
${TCPSERVER_HOST} 587 \
${QMAIL_SMTP_PRE} /var/qmail/bin/qmail-${SERVICE}d /bin/checkpassword true ${QMAIL_SMTP_POST} \
2>&1
--------------------------
After a little bit of fooling around I got it working. My user could
connect from outside, authenticate, and send mail.
But then yesterday, it broke. The symptom was that the mail client
would try to connect, and hang.
I debugged a bit. checkpassword is correctly installed and working. I
can do `printf "%s\0%s\0%s\0" user pass time | checkpassword id 3<&0`
and have it do the right thing.
qmail-smtpd is working correctly for other traffic, ie I can send mail
through when I connect to it on port 25.
When I watch the wire with wireshark, I see the client connect with
SYN, SYN/ACK, ACK, then silence. This is true of multiple clients.
/var/log/qmail/qmail-smtp/current records no events. There is an
instance of qmail-smtpd launched for every connect attempt. If I svc
-d the service, they all exit and I get a bunch of RSTs.
I'm looking for hints. What would cause the server to start but hang?
Any help appreciated.
Thanks in advance...
have been able to find what I need in the various docs, but this one
has me stumped.
I'm running on a pretty up to date (< 1 month) gentoo server.
I fairly recently reconfigured one of my servers to use auth, so that
a user could connect from outside to relay mail. I'm running the
netqmail-1.0.6-r2 ebuild, which includes
netqmail-1.05-tls-smtpauth-20070417.patch.
I followed the instructions in
http://www.fehcom.de/qmail/smtpauth.html. Here's my run file:
--------------------------
#!/bin/bash
# Gentoo Startup script for qmail's SMTP daemon
# $Header: /var/cvsroot/gentoo-x86/mail-mta/netqmail/files/run-qmail-smtpd,v 1.1 2006/02/12 18:42:33 hansmi Exp $
# If you need to edit this file, please look at editing conf-smtpd and
# conf-common first. If you still need to change this file, you should probably
# file a bug on the bugzilla saying what you wanted to change so that
# modifications can be made possible via the configuration files.
# hacked by jrd after reading http://www.fehcom.de/qmail/smtpauth.html
SERVICE=smtp
export SMTPAUTH=''
. /var/qmail/bin/qmail-config-system && \
exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
${QMAIL_TCPSERVER_PRE} \
/usr/bin/tcpserver ${TCPSERVER_OPTS} -x ${TCPSERVER_RULESCDB} \
-c ${MAXCONN} -u ${QMAILDUID} -g ${NOFILESGID} \
${TCPSERVER_HOST} 587 \
${QMAIL_SMTP_PRE} /var/qmail/bin/qmail-${SERVICE}d /bin/checkpassword true ${QMAIL_SMTP_POST} \
2>&1
--------------------------
After a little bit of fooling around I got it working. My user could
connect from outside, authenticate, and send mail.
But then yesterday, it broke. The symptom was that the mail client
would try to connect, and hang.
I debugged a bit. checkpassword is correctly installed and working. I
can do `printf "%s\0%s\0%s\0" user pass time | checkpassword id 3<&0`
and have it do the right thing.
qmail-smtpd is working correctly for other traffic, ie I can send mail
through when I connect to it on port 25.
When I watch the wire with wireshark, I see the client connect with
SYN, SYN/ACK, ACK, then silence. This is true of multiple clients.
/var/log/qmail/qmail-smtp/current records no events. There is an
instance of qmail-smtpd launched for every connect attempt. If I svc
-d the service, they all exit and I get a bunch of RSTs.
I'm looking for hints. What would cause the server to start but hang?
Any help appreciated.
Thanks in advance...