hello
I had added my own support for running courier-authdaemon with /var/run on
tmpfs. I saw that someone had added this support to the standard version so I
removed my support. This is what the standard version contains:
if [ ! -d "$rundir" ]; then
mkdir -p -m 0750 $rundir
fi
This is incorrect as $(dirname $rundir) must belong to daemon otherwise
courierfilter doesn't start and all email is refused.
Apr 6 08:17:18 info courierfilter: /var/run/courier/courierfilter.pid:
Permission denied
Apr 6 08:17:18 info courierd: Purging /var/lib/courier/msgs
Apr 6 08:17:18 info courierd: Waiting. shutdown time=Mon Apr 6 09:17:18
2009, wakeup time=Mon Apr 6 09:17:18 2009, queuedelivering=0, inprogress=0
Apr 6 08:17:37 info courieresmtpd: started,ip=[::ffff:xxx.xxx.xxx.xxx]
Apr 6 08:17:38 err courieresmtpd: authdaemon: s_connect() failed: Permission
denied
I modified the above to
if [ ! -d "$rundir" ]; then
if [ ! -d $(dirname "$rundir") ]; then
mkdir -p -m 0750 $(dirname $rundir)
chown daemon.daemon $(dirname $rundir)
fi
mkdir -m 0750 $rundir
chown daemon.daemon $rundir
fi
Perhaps the chown could be limited to /var/run/courier as I cannot see any
non-root files in /var/run/courier/authdaemon
Stuart
--
If the From address bounces, please see http://www.pook.it/.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org