Hello,

I've a big problem starting courier-pop3d or courier-pop3d-ssl, neither
will start and I cannot figure out why. I have no logs _at_ _all_.

On this same machine, the IMAP server is already running (with TLS
support) along with the authdaemon. Both work flawlessly. This is Courier
IMAP 4.0.3 and Courier authlib 0.58, on a Gentoo 2006.1.

Here's the pop3d configuration file (comments stripped):

----
PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=100
MAXPERIP=100
POP3AUTH="PLAIN LOGIN"
POP3AUTH_ORIG="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
POP3AUTH_TLS="PLAIN LOGIN"
POP3AUTH_TLS_ORIG="PLAIN LOGIN"
POP3_PROXY=0
PORT=110
ADDRESS=0
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=pop3d"
POP3DSTART=YES
MAILDIRPATH=.maildir
MAILDIR=.maildir
PRERUN=
LOGINRUN=
----

Here's the pop3d-ssl configuration file (the pop3d.pem certificate does
exist):

----
SSLPORT=995
SSLADDRESS=0
SSLPIDFILE=/var/run/pop3d-ssl.pid
SSLLOGGEROPTS="-name=pop3d-ssl"
POP3DSSLSTART=YES
POP3_STARTTLS=YES
POP3_TLS_REQUIRED=1
COURIERTLS=/usr/sbin/couriertls
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_CERTFILE=/etc/courier-imap/pop3d.pem
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
TLS_CACHESIZE=524288
MAILDIRPATH=.maildir
MAILDIR=.maildir
----

Here's the authdaemonrc configuration:

----
authmodulelist="authmysql"
authmodulelistorig="authvchkpw"
daemons=10
authdaemonvar=/var/lib/courier/authdaemon
DEBUG_LOGIN=1
DEFAULTOPTIONS="disablepop3=0"
LOGGEROPTS="-facility=mail"
----

The authmysqlrc file:

----
MYSQL_SERVER localhost
MYSQL_USERNAME <someuser>
MYSQL_PASSWORD <somepassword>
MYSQL_PORT 0
MYSQL_DATABASE mail_data
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 1001
MYSQL_GID_FIELD 1001
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD "/home/vmail/mail"
MYSQL_MAILDIR_FIELD
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
----

Finally, here are the scripts used by Gentoo to launch the pop3d{,-ssl}
daemons. For both I verified that the different programs called did exist,
and they do. But the scripts themselves fail silently...

For pop3d (all comments stripped):
----
prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/lib/courier-imap
source /etc/courier-imap/pop3d-ssl
source /etc/courier-imap/pop3d
export POP3DSTARTTLS=$POP3_STARTTLS
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d | \
        sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d-ssl | \
        sed 's/=.*//;s/^/export /;s/$/;/'`
eval $PRERUN \
/usr/lib/courier-imap/couriertcpd -address=$ADDRESS \
        -stderrlogger=/usr/lib/courier-imap/courierlogger \
        -stderrloggername=pop3d \
        -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
        -pid=$PIDFILE $TCPDOPTS \
        $PORT ${exec_prefix}/sbin/pop3login \
                /usr/lib/courier-imap/courier-pop3d.indirect ${MAILDIR}
----

For pop3d-ssl:

----
prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/lib/courier-imap
source /etc/courier-imap/pop3d
source /etc/courier-imap/pop3d-ssl
export POP3_TLS=1
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d | \
        sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/pop3d-ssl | \
        sed 's/=.*//;s/^/export /;s/$/;/'`
eval $PRERUN \
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
        -stderrlogger=/usr/lib/courier-imap/courierlogger \
        -stderrloggername=pop3d-ssl \
        -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
        -pid=$SSLPIDFILE $TCPDOPTS \
        $SSLPORT $COURIERTLS -server -tcpd \
        ${exec_prefix}/sbin/pop3login \
                /usr/lib/courier-imap/courier-pop3d.indirect ${MAILDIR}
----


First thing, how do I obtain logs? Not having any is really troublesome
when you look into debugging what happens... And, well, the available
documentation is of no help.

Any help appreciated. Have a nice day,
-- 
Francis Galiegue, fg (at) one2team [dot] com
One2team - 12bis rue de la Pierre Levée, 75011 PARIS
tel +33143381980



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to