/usr/share/popfile/start_popfile.sh is in popfile 1.1.3+dfsg-0ubuntu1.
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 | #!/bin/sh
CONFIGFILE=/etc/popfile/defaults
UIPORT=7070
UILOCAL=yes
POPPORT=7071
POPLOCAL=yes
if [ -e $CONFIGFILE ]; then . $CONFIGFILE; fi
if [ "$UILOCAL" = "no" ]; then UILOCAL=0; else UILOCAL=1; fi
if [ "$POPLOCAL" = "no" ]; then POPLOCAL=0; else POPLOCAL=1; fi
PARAMS="--set config_piddir=/var/run/popfile/ --set logger_logdir=/var/log/popfile/"
if [ ! -s /var/lib/popfile/popfile.cfg ]
then
PARAMS="$PARAMS --set html_port=$UIPORT --set html_local=$UILOCAL --set pop3_port=$POPPORT --set pop3_local=$POPLOCAL"
fi
PARAMS="$PARAMS $1"
cd /var/lib/popfile
export POPFILE_ROOT=/usr/share/popfile
export POPFILE_USER=/var/lib/popfile
umask 0027
exec /usr/share/popfile/popfile.pl $PARAMS
|