/usr/lib/courier/makeimapaccess is in courier-base 0.76.3-5+deb9u1.
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 | #! /bin/sh
#
# Copyright 2015 Double Precision, Inc. See COPYING for
# distribution information.
prefix="/usr"
exec_prefix="/usr"
sysconfdir="/etc/courier"
localstatedir="/var/lib/courier"
bindir="/usr/bin"
sbindir="${exec_prefix}/sbin"
libexecdir="${prefix}/lib/courier"
. ${sysconfdir}/imapd
. ${sysconfdir}/imapd-ssl
umask 022
${bindir}/makedat \
-src=${IMAPACCESSFILE} \
-file=${IMAPACCESSFILE}.dat \
-tmp=${IMAPACCESSFILE}.tmp -cidr || exit 1
${sbindir}/couriertcpd -pid=$PIDFILE -restart
${sbindir}/couriertcpd -pid=$SSLPIDFILE -restart
|