[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SMTP Auth Does Not Work



Hi everyone.

I have installed qmail (netqmail version) and patched it with Krzysztof Dabrowski SMTP Auth patch. But the mail server still operates as an open relay.

The patch was correctly installed:

$  telnet cp.main.org 25
Trying 192.168.4.15...
Connected to cp.main.org (192.168.4.15).
Escape character is '^]'.
220 cp.main.org ESMTP
EHLO cp
250-cp.main.org
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-PIPELINING
250 8BITMIME
...

My /service/qmail-smtp/run lines that call qmail-smtpd:

exec /usr/local/bin/softlimit -m 10000000 \
    /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
     -u "$QMAILDUID" -g "$NOFILESGID" 0 25 /var/qmail/bin/qmail-smtpd \ cp.main.org /bin/cmd5checkpw /bin/true 2>&1


The cmd5checkpw binary is setuid and owned by "smau" user:

$ ls -l /bin/cmd5checkpw
-rwsr-sr-x 1 smau root 24650 Dec  8 09:47 /bin/cmd5checkpw


My /etc/poppasswd file:

$ ls -l /etc/poppasswd
- r- - - - - - - - 1 smau root 10 Dec  8 09:57 /etc/poppasswd

$ less /etc/poppasswd
someuser:somepass

Also, I loged in as qmaild user and checked cmd5checkpw utility directly and it worked properly!

I haven't any other idea about it. Thank you for help.


Looking for last minute shopping deals? Find them fast with Yahoo! Search.