Package: postfix-policyd
Version: 1.73-1
Tags: patch

The cronjob for cleanup:

[ -x /usr/sbin/postfix-policyd-cleanup ] && /usr/sbin/postfix-policyd-cleanup

is having cron mail me the following errors on my system:

policyd v1.73
usage: /usr/lib/postfix-policyd/cleanup -c /path/to/policyd.conf

It seems that I could specify DAEMON_OPTS="-c /etc/postfix-policyd.conf" 
in /etc/default/postfix-policyd, which doesn't seem to be documented. Given 
that DAEMON_CONFIG already specifies the location of the configuration I 
changed postfix-policyd-cleanup to pass -c "$DAEMON_CONFIG" to cleanup, which 
works fine. Please consider applying my attached patch!

Cheers,
Thomas Luzat
--- postfix-policyd-cleanup~	2006-03-20 11:55:51.000000000 +0100
+++ postfix-policyd-cleanup	2006-04-24 04:08:31.245102250 +0200
@@ -1,8 +1,13 @@
 #!/bin/sh
 
+# Default config location
+DAEMON_CONFIG="/etc/postfix-policyd.conf"
+
 # Include policyd defaults if available
 if [ -f /etc/default/postfix-policyd ] ; then
 	. /etc/default/postfix-policyd
 fi
 
-/usr/lib/postfix-policyd/cleanup $DAEMON_OPTS
+if [ -f "$DAEMON_CONFIG" ] ; then
+	/usr/lib/postfix-policyd/cleanup -c "$DAEMON_CONFIG"
+fi

Reply via email to