Comment 2 for bug 72602

Revision history for this message
enyc (enyc) wrote :

On further investigation, the group given to /var/run/qpsmtpd by this package-from-debian in dapper+edgy+feisty is actually "adm" and not "qpsmtpd" (Not sure how I made that mistake!).

The debian/qpsmtpd.postinst uses:-
 RUNAS=qpsmtpd
 PIDDIR=/var/run/qpsmtpd
 dpkg-statoverride --update --add "$RUNAS" adm 2755 "$PIDDIR"
(to set the permissions on /var/run/qpsmtpd from the package)

This patch simply creates (if needed) and updates those permissions on the /var/run/qpsmtpd dir at init.d start time, using the RUNAS set in the init script. This is implemented with a dpatch to the source-package, in the debdiff below.

The attached patch fixes the problem in the feisty package so that qpsmtpd (after being configured with dpkg-reconfigure of-course) continues to work after reboots on ubuntu! I have tested this as best as I can and all seems to be well now.

P.S. this does not affect greylist database as that is apparently in /var/lib/qpsmtpd/greylisting, outside the /var/run directory.