I can't seem to get qmail to authenticate smtp! I have tried the qmail-smtpd-auth patch but couldn't get it working. Does anyon know of an alternitive or have use qmail-smtpd-auth patch and have it working?
I can't seem to get qmail to authenticate smtp! I have tried the qmail-smtpd-auth patch but couldn't get it working. Does anyon know of an alternitive or have use qmail-smtpd-auth patch and have it working?
Anyone?
Yes, I have got it works!
I used:
cmd5checkpw-0.22.tar.gz
qmail-smtpd-auth-0.31.tar.gz
Check them out from http://members.elysium.pl/brush/smtp-auth/index.html
After install you can type the followings to test:
# telnet hostname 25
# ehlo
And it should display
"250-(hostname)
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-PIPELINING
250 8BITMIME"
This is what I currently get
Code:220 www.xyz.net ESMTP ehlo 502 unimplemented (#5.5.1)
Um......
Your version is too old and thus not support ehlo, or wrong installation!?
Let's try
telnet www.xyz.net 25
helo
Try to install Qmail without authenticate smtp patch, and see if ehlo work...
The qmail version is the current qmail version. Without hte patch ehlo doesn't work. With the patch, it yeilds the same results THOUGH themanpage and other parts reflect that the patch did work.
"themanpage and other parts reflect that the patch did work."
What are the other parts? Then you got it (smtp auth) works now?
[quote author=pyfsapple link=board=4;threadid=7161;start=0#66388 date=1055122750]
"themanpage and other parts reflect that the patch did work."
What are the other parts? Then you got it (smtp auth) works now?
[/quote]
Well, I mean the binary md5sum is not the same as the original md5sum of qmail. The patch succedded when applying ... that kind of stuff.
No, the smtp auth still doesn't work. It's odd.
Did you use cmd5checkpw-0.22 for password checking?
If you did, the followings may help you:
Installation for cmd5checkpw-0.22
tar -zvxf cmd5checkpw-0.22.tar.gz
cd cmd5checkpw-0.22
mkdir /usr/man
mkdir /usr/man/man8
make
make install
cp poppasswd /etc/
chown qmaild /etc/poppasswd
chmod 400 /etc/poppasswd
chown qmaild /bin/cmd5checkpw
chmod a+s /etc/cmd5checkpw
And thus edit poppasswd (by vi or something else), insert the clear text user name and password:
e.g. username:userpass
I hope this helps!
Here is the current 'run' file ...
It is currently using checkvpw .... would this stop the smtp server from allowing/showing support for ehlo?Code:#!/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 \ envdir /etc/relay-ctrl \ /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /usr/local/bin/relay-ctrl-check /var/qmail/bin/qmail-smtpd 2>&1
Bookmarks