/usr/lib/courier/imapd is in courier-imap 4.18.1+0.78.0-2ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | #! /bin/sh
#
# Copyright 1998 - 2015 Double Precision, Inc.
# See COPYING for distribution information.
prefix=/usr
exec_prefix=/usr
sbindir=${exec_prefix}/sbin
sysconfdir=/etc/courier
if test ! -f /etc/courier/imapd
then
echo "/etc/courier/imapd does not exist, forgot make install-configure?"
exit 1
fi
if test ! -f /etc/courier/imapd-ssl
then
echo "/etc/courier/imapd-ssl does not exist, forgot make install-configure?"
exit 1
fi
. /etc/courier/imapd-ssl
. /etc/courier/imapd
case $1 in
start)
umask $IMAP_UMASK
if test ! -f "${IMAPACCESSFILE}.dat"
then
$sbindir/makeimapaccess
fi
ulimit -v $IMAP_ULIMITD
/usr/bin/env -i /bin/sh -c " set -a ; \
prefix=/usr ; \
exec_prefix=/usr ; \
sbindir=${exec_prefix}/sbin ; \
bindir=/usr/bin ; \
. /etc/courier/imapd ; \
. /etc/courier/imapd-ssl ; \
IMAP_STARTTLS=$IMAPDSTARTTLS ; \
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
/bin/mkdir -p `dirname $PIDFILE` ; \
/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
${exec_prefix}/sbin/couriertcpd -address=$ADDRESS \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
-access=$IMAPACCESSFILE.dat \
$TCPDOPTS \
$PORT ${prefix}/lib/courier/courier/imaplogin \
/usr/bin/imapd ${MAILDIRPATH}"
;;
stop)
/usr/sbin/courierlogger -pid=$PIDFILE -stop
;;
restart)
/usr/sbin/courierlogger -pid=$PIDFILE -restart
;;
esac
exit 0
|