[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SMTP Auth Does Not Work
- To: qmail@xxxxxxxxxxxxx
- Subject: SMTP Auth Does Not Work
- From: mozafar rowshan <mozafar_rowshan@xxxxxxxxx>
- Date: Sat, 08 Dec 2007 00:34:22 -0800 (PST)
- Delivered-to: de5-qmail@sws5.ornl.gov
- Delivered-to: mailing list qmail@list.cr.yp.to
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=WHhCdcvP/4+f6/8XPjFXWj1nXMR50AOj1Za19zxbD1XY/ai6iZ7595Uy2X3Qu4Bi8zGdsfAOojQQ+opfv4J9Sp0BKg3fHlgqt4teePA0i+LL7ugDnUsuM2NDuTieWtPwQFwd1YAxrytiSRiLIX4e/gyuEbyBd5oxsSsOWJWiYQQ=;
- Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
- Reply-to: mozafar_rowshan@xxxxxxxxx
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.