I permit myself to post this here, in case someone else has a need to know.

pkg_add -ui -F update -F updatedepends
failed me with the following:

Collision: the following files already exist
        /usr/local/sbin/courierlogger (courier-imap-3.0.5p4)
/usr/sbin/pkg_add: fatal issues in  installing courier-authlib-0.58p3

Same result with pkg_add courier-authlib-0.58p3.
Only chance out:

# pkg_delete courier-imap
Warning: obsolete construct: @ignore /usr/sbin/pkg_delete: Can't read /usr/local/man/man1/courierlogger.1 courier-imap-3.0.5p4: complete # pkg_add courier-authlib-0.58p3 courier-authlib-0.58p3: complete --- courier-authlib-0.58p3 -------------------
Sample configuration files are installed in /etc/courier/.
# pkg_add courier-imap courier-imap-4.1.1p2: complete --- courier-imap-4.1.1p2 -------------------
You now need to edit appropriately the Courier-IMAP configuration files
installed in /etc/courier/courier/.

The latter alas is already wrong. There is no /etc/courier/courier/. It is simply /etc/courier.
(It is true, you need to set CN, though)

.... When this
is done, you can use the 'mkimapdcert' script to automatically generate
a server certificate, which is installed into /etc/ssl/private/imapd.pem

this better reads /usr/local/sbin/mkimapdcert because the directory is not in the path. It still fails, though, because /etc/ssl/private/imapd.pem exists. Delete it.

The following

To control the daemon use /usr/local/libexec/imapd.rc and
/usr/local/libexec/imapd-ssl.rc, and to run the authdaemon, place the
following in /etc/rc.local:

mkdir -p /var/run/courier{,-auth}/
/usr/local/sbin/authdaemond start
is not quite complete. /usr/local/libexec/imapd.rc also needs to be 'start'ed,
and it could be helpful to point this out.
Here the whole lot looks like

# we need subdirectories for the PIDs
mkdir -p /var/run/courier{,-auth}
# we start the authentication daemon
if [ -x /usr/local/sbin/authdaemond ]; then
        echo -n ' authdaemon';  /usr/local/sbin/authdaemond start
# no authentication - no SSL
        if [ -x /usr/local/libexec/imapd-ssl.rc ]; then
echo -n ' imap-ssl'; /usr/local/libexec/imapd-ssl.rc start
        fi
fi

If you do an upgrade on a production box, like here, this might be helpful
and saves you from some inconveniences, like when your imapd doesn't start. ;)

Uwe



Reply via email to