Hello,
I posted a question regarding smtp-auth and I
recieved an answer no external patch required for smtp-auth in the new version
of the qmail-ldap.
it seems like smtp-auth just doesn't
work. this is my startup file for the smtpd daemon:
#!/bin/sh
DEBUGLEVEL=255
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
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 5000000 \
/usr/local/ucspi-tcp/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd /var/qmail/bin/auth_smtp /bin/true 2>&1
DEBUGLEVEL=255
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
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 5000000 \
/usr/local/ucspi-tcp/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd /var/qmail/bin/auth_smtp /bin/true 2>&1
on the log file I can't see nothing related to
smtpd (DEBUGLEVEL=255 for pop3d work just fine so it's nothing about the --DEBUG
option on the Makefile)
also, openldap's daemon(slapd) does not create any
logs while running in a debug mode, so it seems like auth-smtp just doesn't do
anything.
ps auxw |grep auth_smtp
returns:
qmaild 5213 0.2 0.1 1424 480 ? S 15:03 0:00 /usr/local/ucspi-tcp/bin/tcpserver -v -R -l mail.asup.co.il -x /etc/tcp.smtp.cdb -c 20 -u 201 -g 200 0 smtp /var/qmail/bin/qmail-smtpd /var/qmail/bin/auth_smtp /bin/true
Any suggestions? please? :)
