tags 470662 + patch thanks I've just reread my answer and I feel so dumb. Seems to me as if the group of pgsql.conf (and also mysql.conf) is just incorrect. It should be dspam like dspam.conf as both dspam and dspamc are set-GID and will execute with effective group dspam.
Attached is a proposed patch. In the mean time you could just as well do chown dspam:dspam /etc/dspam/dspam.d/pgsql.conf Thomas Preud'homme
diff --git a/debian/libdspam7-drv-mysql.postinst b/debian/libdspam7-drv-mysql.postinst index 8c3a398..530983d 100644 --- a/debian/libdspam7-drv-mysql.postinst +++ b/debian/libdspam7-drv-mysql.postinst @@ -12,7 +12,7 @@ set -e # Set some variables dbc_generate_include=template:/etc/dspam/dspam.d/mysql.conf -dbc_generate_include_owner="dspam" +dbc_generate_include_owner="dspam:dspam" dbc_generate_include_perms="640" dbc_generate_include_args="-U -o template_infile='/etc/dspam/dspam.d/mysql.conf'" diff --git a/debian/libdspam7-drv-pgsql.postinst b/debian/libdspam7-drv-pgsql.postinst index 6e906f5..fd42e39 100644 --- a/debian/libdspam7-drv-pgsql.postinst +++ b/debian/libdspam7-drv-pgsql.postinst @@ -9,7 +9,7 @@ set -e # Set some variables dbc_generate_include=template:/etc/dspam/dspam.d/pgsql.conf -dbc_generate_include_owner="dspam" +dbc_generate_include_owner="dspam:dspam" dbc_generate_include_perms="640" dbc_generate_include_args="-U -o template_infile='/etc/dspam/dspam.d/pgsql.conf'"
signature.asc
Description: This is a digitally signed message part.