Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230879 - net-mail/courier-imap startup scripts to use courierlogger properly
Summary: net-mail/courier-imap startup scripts to use courierlogger properly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tupone Alfredo
Depends on:
Reported: 2008-07-05 18:13 UTC by Mehmet Giritli
Modified: 2019-07-18 19:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Giritli 2008-07-05 18:13:43 UTC
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
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-13 22:45:29 UTC
chutzpah has taken over courier-imap maint.
Comment 2 Tupone Alfredo gentoo-dev 2019-07-18 19:55:59 UTC
courier-imap is running under courierlog now (and from sometime)