cyt0plas n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Aug 2003 Posts: 8
|
Posted: Fri Oct 21, 2005 7:20 am Post subject: Vpopmail / Courier / SMTP auth [FIXED] |
|
|
I've ran a number of redhat qmail toasters before, but I figured I'd have a go at doing one on linux.
Users have to be stored in LDAP; I originally tried qmail-ldap (using an updated ebuild off the bugs site). I abandoned it when I found out that vpopmail had it's own support, and it wasn't necessary for qmail to be compiled with it in.
Long story short, I compiled vpopmail from source, using the command line: Quote: | ./configure --bindir=/vmail/bin --sbindir=/vmail/sbin --sysconfdir=/vmail/conf \
--enable-qmail-newu=/var/qmail/bin/qmail-newu \
--enable-qmail-inject=/var/qmail/bin/qmail-inject --enable-qmail-newmrh=/var/qmail/bin/qmail-newmrh \
--enable-roaming-users --enable-tcprules-prog=/usr/bin/tcprules \
--enable-tcpserver-file=/etc/tcprules.d/tcp.qmail-smtp --enable-relay-clear-minutes=60 \
--enable-learn-passwords --enable-qmail-ext --enable-domains-dir=domains \
--enable-auth-module=ldap | .
It's installed against a stock qmail ebuild, and receiving emails work great, as do sending from a host that's allowed to relay. The command line vpopmail commands all work as they should, as far as I can tell.
The issue I'm having is a complete inability to relay, either through pop before smtp, or through smtp auth.
My /var/qmail/control/conf-smtpd: Quote: | 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="/vmail/bin/vchkpw"
QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}" |
/etc/courier-imap/imapd contains: Quote: | PRERUN="envdir /etc/relay-ctrl relay-ctrl-chdir"
LOGINRUN="relay-ctrl-allow" |
relay-ctrl seems to be broken, as there are no files created in /etc/relay-ctrl. Anyone have ideas for how I can troubleshoot this server? I could probably get it working if I knew what was causing the problem. I tried using printf to test vchkpw; unfortunatly, I have no clue how to access the return code. It doesn't print error messages, so I don't believe it to be the problem.
Edit: I re-emerged qmail without SSL support (TLS kept crashing it on x86_64, and removed the first parameter (the hostname) from QMAIL_SMTP_POST. Works fine now, although I wish I could have kept TLS |
|