benow Tux's lil' helper
Joined: 02 Jun 2003 Posts: 84
|
Posted: Wed Jul 13, 2005 2:46 am Post subject: [solved] qmail, vpopmail and qmail-smtpd auth |
|
|
I've run into a bit of trouble trying to get qmail smtpd-auth going. Following the many faq's, I installed and configured qmail, relay client and vpopmail. Mail is coming in just fine and being delivered locally without issue. I was hoping to get smtpd-auth going using vpopmail vchkpw for authentication. I made the appropriate changes to /var/qmail/control/conf-smtpd
Code: | TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"
QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
[ -z "${QMAIL_SMTP_POST}" ] && QMAIL_SMTP_POST=/bin/true
QMAIL_SMTP_CHECKPASSWORD="/var/vpopmail/bin/vchkpw"
QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
|
which should call /var/vpopmail/bin/vchkpw to authenticate, but it failed with '454 oops, unable to write pipe and I can't auth (#4.3.0)'. Searching for this turned up a couple hits, but nothing useful. I decided to throw in strace and debug. Turns out it was trying to execute ${QMAIL_SMTP_AUTHHOST} (argv[1]), which was of course failing. Hacking the conf to be:
Code: | QMAIL_SMTP_POST="${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}" |
resulted in vchkpw seemingly being called (no pipe error, anyway), but authentication fails (535 authentication failed (#5.7.1)). By turning on and tailing mysql logging during auth, I was hoping to see some queries of vpopmail auth backend, but nothing. So, it would seem vchkpw is not actually being called properly. I tried changing the run script to start smtpd as uid:gid of root:root, but still nothing.
Anyone have any suggestions? Is qmail-smtpd with vpopmail's vchkpw in use elsewhere with std gentoo config?
EDIT: re-emerge of vpopmail did it. Is also running without ${QMAIL_SMTP_AUTHHOST}. |
|