Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vpopmail / Courier / SMTP auth [FIXED]
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
cyt0plas
n00b
n00b


Joined: 07 Aug 2003
Posts: 8

PostPosted: Fri Oct 21, 2005 7:20 am    Post subject: Vpopmail / Courier / SMTP auth [FIXED] Reply with quote

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
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