/usr/lib/courier/imapd is in courier-imap 4.10.0-20120615-1ubuntu3.
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 | #! /bin/bash
#
# Copyright 1998 - 2005 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
ulimit -v $IMAP_ULIMITD
/usr/bin/env -i /bin/bash -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 ; \
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
${exec_prefix}/sbin/couriertcpd -address=$ADDRESS \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
$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
|