qmail-smtp-auth patch and vpopmail / vchkpw ?
Howdy all,
I have qmail installed, and the vpopmail package. I can log in fine from the office, as I enable relaying for the LAN, but logging in from home won't work like that unless I want to be an open relay server, which is a VERY BAD THING. One solution is to use the --enable-roaming-users=y option in vpopmail, but I would prefer to use the qmail-smtp-auth patch. http://members.elysium.pl/brush/qmail-smtpd-auth/ It seems a cleaner solution to the problem. I have applied the patch, and get it working using the recommended cmd5checkpw program, using the /etc/poppasswd file to list the username/password pairs for smtp authentication. But I'd like to replace cmd5checkpw with vchkpw so that the smtp authentication will use the same username/password pair as the pop authentication. I have tried simply replacing the cmd5checkpw program with the vchkpw one in the supervise/qmail-smtpd/run file, but it doesn't seem to work. Surely it should be a trivial matter? Perhaps anyone out there has already figured this out? The relevant line from the /supervise/qmail-pop3d/run file: exec /usr/local/bin/softlimit -m 2000000 \ /usr/local/bin/tcpserver -x \ /etc/tcp.smtp.cdb -v -R -H -l 0 -g 89 -u 89 0 110 \ /var/qmail/bin/qmail-popup \ "$LOCAL" /home/vpopmail/bin/vchkpw \ /var/qmail/bin/qmail-pop3d Maildir 2>&1 the relevant line from the /supervise/qmail-smtpd/run file: exec /usr/local/bin/softlimit -m 2000000 \ /usr/local/bin/tcpserver -x \ /etc/tcp.smtp.cdb -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb \ # No idea why I type the -x option twice... -c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ /var/qmail/bin/qmail-smtpd \ # "$LOCAL" /bin/cmd5checkpw /bin/true \ #above line replaced with this one "$LOCAL" /home/vpopmail/bin/vchkpwd /bin/true \ 2>&1 |
I got the same problem,
I got an error -- 454 oops, unable to write pipe and I can't auth (#4.3.0) Anyone can help me please? my linux box : fedora core 1 qmail : http://www.qmail.org/netqmail-1.05.tar.gz TLS + SMTP Auth patch : http://shupp.org/patches/netqmail-1....20040207.patch vpopmail : http://www.inter7.com/vpopmail/vpopmail-5.4.0.tar.gz the qmail-smtpd run script: ---------------------------------start------------ #!/bin/sh 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 30000000 \ /usr/local/bin/tcpserver -H -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd "$LOCAL" /home/vpopmail/bin/vchkpw /bin/true & ------------------------------end------------------------ if I close the smtp auth in my MTA, I can send and receive the email. The qmail and the vpopmail all work well. But if I open the smtp auth for my MTA, I will get the error message : 454 oops, unable to write pipe and I can't auth (#4.3.0). And the pop work well. anyone could help me, please. Thanks, Jason |
All times are GMT -5. The time now is 07:32 AM. |