Package: spamassassin Version: 3.4.2-1 Severity: wishlist Tags: patch Hello everybody,
this is related to #802736 ("spamassassin: cron job delays updates of channels in sa-update-hooks.d"). Since our mail server is operating in a german speaking context, I'd like to add SA rulesets that kill german speaking spam. I use the sa.zmi.at channel for that. It took me about 4 hours to figure out how to configure the various moving parts to integrate that channel. AFAI could see there's no designated place in Debian's spamassassin to add channels. It could be that other distros have those, it'd certainly be nice to be compatible with other distros, but I have not looked. I have tried to add a "standard way" to add channels to the "Debian SA setup". Here it goes: ==================================================================== root@buz /etc # git show 6d86f4b commit 6d86f4b Author: Tomas Pospisek <tpo_...@sourcepole.ch> Date: Mon Jul 29 16:47:54 2019 +0200 allow to configure additional channels diff --git a/cron.daily/spamassassin b/cron.daily/spamassassin index 52a7d71..8331452 100755 --- a/cron.daily/spamassassin +++ b/cron.daily/spamassassin @@ -73,8 +73,10 @@ fi umask 022 env -i LANG="$LANG" PATH="$PATH" http_proxy="$http_proxy" \ start-stop-daemon --chuid debian-spamd:debian-spamd --start \ --exec /usr/bin/sa-update -- \ - --gpghomedir /var/lib/spamassassin/sa-update-keys 2>&1 + --gpghomedir /var/lib/spamassassin/sa-update-keys \ + --gpgkeyfile /etc/spamassassin/sa-update-gpgkeys \ + --channelfile /etc/spamassassin/sa-update-channels 2>&1 case $? in 0) diff --git a/spamassassin/sa-update-channels b/spamassassin/sa-update-channels new file mode 100644 index 0000000..198f0bc --- /dev/null +++ b/spamassassin/sa-update-channels @@ -0,0 +1,2 @@ +updates.spamassassin.org +sa.zmi.at diff --git a/spamassassin/sa-update-gpgkeys b/spamassassin/sa-update-gpgkeys new file mode 100644 index 0000000..668da5d --- /dev/null +++ b/spamassassin/sa-update-gpgkeys @@ -0,0 +1,2 @@ +265FA05B +40F74481 diff --git a/spamassassin/sa-update-gpgkeys.README b/spamassassin/sa-update-gpgkeys.README new file mode 100644 index 0000000..ae131dc --- /dev/null +++ b/spamassassin/sa-update-gpgkeys.README @@ -0,0 +1,2 @@ +265FA05B - updates.spamassassin.org +40F74481 - sa.zmi.at ==================================================================== I like to propose to add this (or some other working) mechanism to the SA package to be able to "easily" add more channels. Of course, if this mechanism were added, then there'd need to be some documentation in /usr/share/doc/spamassassin/README.Debian.gz, which I volunteer to add if this mechanism looks OK. Thanks a lot for maintaining SA, Noah! *t -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (990, 'stable') Architecture: i386 (x86_64) Kernel: Linux 4.9.0-9-amd64 (SMP w/8 CPU cores) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_CH.UTF-8), LANGUAGE=de_CH.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_CH.UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages spamassassin depends on: ii adduser 3.118 ii curl 7.64.0-4 ii init-system-helpers 1.56+nmu1 pn libarchive-tar-perl <none> ii libhtml-parser-perl 3.72-3+b3 ii libhttp-date-perl 6.02-1 ii libmail-dkim-perl 0.54-1 ii libnet-dns-perl 1.19-1 ii libnetaddr-ip-perl 4.079+dfsg-1+b3 ii libsocket6-perl 0.29-1+b1 ii libsys-hostname-long-perl 1.5-1 ii libwww-perl 6.36-2 ii lsb-base 10.2019051400 ii perl 5.28.1-6 Versions of packages spamassassin recommends: ii gnupg 2.2.12-1 ii libio-socket-inet6-perl 2.72-2 ii libmail-spf-perl 2.9.0-4 pn libsys-syslog-perl <none> ii sa-compile 3.4.2-1 ii spamc 3.4.2-1 Versions of packages spamassassin suggests: pn libcompress-zlib-perl <none> ii libdbi-perl 1.642-1+b1 pn libencode-detect-perl <none> pn libgeo-ip-perl <none> ii libio-socket-ssl-perl 2.060-3 pn libnet-patricia-perl <none> ii pyzor 1:1.0.0-3 ii razor 1:2.85-4.2+b5 -- Configuration Files: /etc/cron.daily/spamassassin changed [not included] /etc/default/spamassassin changed [not included] /etc/spamassassin/local.cf changed [not included] /etc/spamassassin/v310.pre changed [not included] /etc/spamassassin/v320.pre changed [not included] -- debconf information excluded