Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] qmail, vpopmail and qmail-smtpd auth
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
benow
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2003
Posts: 84

PostPosted: Wed Jul 13, 2005 2:46 am    Post subject: [solved] qmail, vpopmail and qmail-smtpd auth Reply with quote

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}.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum