/usr/lib/courier/pop3d is in courier-pop 0.68.2-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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #! /bin/bash
#
# Copyright 1998 - 2005 Double Precision, Inc.  See COPYING for
# distribution information.
#
# Sample script to start Courier's pop3 daemon.
#
# This script should work for most systems.  Authenticate via the PAM library,
# /etc/shadow, or fallback to /etc/passwd
#
# You must run this as root, and as a daemon process.
#
prefix="/usr"
exec_prefix="/usr"
sysconfdir="/etc/courier"
sbindir="${exec_prefix}/sbin"
bindir="/usr/bin"
libexecdir="${prefix}/lib/courier"
if test ! -f ${sysconfdir}/pop3d
then
	echo "${sysconfdir}/pop3d does not exist, forgot make install-configure?"
	exit 1
fi
if test ! -f ${sysconfdir}/pop3d-ssl
then
	echo "${sysconfdir}/pop3d-ssl does not exist, forgot make install-configure?"
	exit 1
fi
. ${sysconfdir}/pop3d-ssl
. ${sysconfdir}/pop3d
export PATH
export SHELL
case "$1" in
start)
	;;
stop)
	/usr/sbin/courierlogger -pid=$PIDFILE -stop
	exit 0
	;;
restart)
	/usr/sbin/courierlogger -pid=$PIDFILE -restart
	exit 0
	;;
*)
	exit 0
	;;
esac
cd /usr
/usr/bin/env -i /bin/bash -c " set -a; \
		prefix=/usr ; \
		exec_prefix=/usr ; \
		sbindir=${exec_prefix}/sbin ; \
		bindir=/usr/bin ; \
		libexecdir=${prefix}/lib/courier ; \
		. /etc/courier/pop3d ; \
		. /etc/courier/pop3d-ssl ; \
	TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
	PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
	/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
	${exec_prefix}/sbin/couriertcpd -address=$ADDRESS \
		-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
		$TCPDOPTS \
		$PORT ${prefix}/lib/courier/courier/courierpop3login \
			${prefix}/lib/courier/courier/courierpop3d ${MAILDIRPATH}"
 |