For courier-imap >4, it is possible to use courierlogger as the parent process to startup the couriertcpd daemon. In this way, configuration variables ${SSLLOGGEROPTS} and ${LOGGEROPTS} can finally have some use in customizing the logging operations (eg. specifying a log facility). For this, the files /usr/lib/courier-imap/{gentoo-imapd.rc,gentoo-imapd-ssl.rc,gentoo-pop3d.rc,gentoo-pop3d-ssl.rc} must be modified slightly to get this straight. For example, /usr/lib/courier-imap/gentoo-imapd-ssl.rc file has the following part in it where the startup takes place: eval ${PRERUN} ${libexecdir}/couriertcpd \ -address=${SSLADDRESS} \ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \ -pid=${SSLPIDFILE} ${TCPDOPTS} ${SSLPORT} \ ${COURIERTLS} -server -tcpd \ ${bindir}/imaplogin \ ${libexecdir}/courier-imapd.indirect "${MAILDIR}" replacing this part with the following gives us what we want: eval ${PRERUN} ${libexecdir}/courierlogger \ ${SSLLOGGEROPTS} \ -pid=${SSLPIDFILE} \ -start \ ${libexecdir}/couriertcpd \ -address=${SSLADDRESS} \ -maxprocs=${MAXDAEMONS} -maxperip=${MAXPERIP} \ ${TCPDOPTS} ${SSLPORT} \ ${COURIERTLS} -server -tcpd \ ${bindir}/imaplogin \ ${libexecdir}/courier-imapd.indirect "${MAILDIR}" A similar update is necessary for the rest of the three files as well: /usr/lib/courier-imap/{gentoo-imapd.rc,gentoo-pop3d.rc,gentoo-pop3d-ssl.rc} Reproducible: Always
chutzpah has taken over courier-imap maint.
courier-imap is running under courierlog now (and from sometime)