I have an email server that runs qmail. I am trying to add smtp auth to it according to this method:
http://wwww.suspectclass.com/~sgiffo...tp_auth.README
It's an interesting approach that avoids changes to qmail-smtpd.
To be honest, I do not really know what I am doing, but I have followed the instructions and installed the necessary software with no problems. However, I am having trouble modifying my run file for qmail-smtpd. I have tried several things, but the modified run file doesn't work. Here is what needs to be added on the exec line before qmail-smtpd:
smtp_auth \
checkpassword_nosu \
setuidgid qmaild \
smtpproxy \
And here is my normal run file for qmail-smtpd:
------------------
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
rblsmtpd \
-r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 2>&1
------------------------
Can anyone suggest how I modify my run file?
Thanks,
Apollo