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