Your message dated Thu, 11 May 2017 19:51:56 -0700
with message-id <[email protected]>
and subject line marking this as resolved
has caused the Debian Bug report #785081,
regarding spamassassin: cronjob doesn't check if spamassasin is enabled before 
reloading
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
785081: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785081
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spamassassin
Version: 3.4.0-6
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Maintainer,

I'm running spamassasin through amavis therefore spamassasin is not
running as a service. /etc/cron.daily/spamassassin tries to reload the
service after updates have been found, resulting in an "error mail" as
the service is not running and can therefore not be reloaded.

I would suggest checking $ENABLED (as configured in
/etc/default/spamassassin) before reloading the service, see attached
patch.

cu
    Alex

- -- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages spamassassin depends on:
ii  adduser                         3.113+nmu3
ii  init-system-helpers             1.22
pn  libarchive-tar-perl             <none>
ii  libhtml-parser-perl             3.71-1+b3
ii  libnet-dns-perl                 0.81-2
ii  libnetaddr-ip-perl              4.075+dfsg-1+b1
ii  libsocket6-perl                 0.25-1+b1
ii  libsys-hostname-long-perl       1.4-3
ii  libwww-perl                     6.08-1
ii  perl                            5.20.2-3
ii  perl-modules [libio-zlib-perl]  5.20.2-3

Versions of packages spamassassin recommends:
ii  gnupg                      1.4.18-7
ii  libio-socket-inet6-perl    2.72-1
ii  libmail-spf-perl           2.9.0-3
ii  perl [libsys-syslog-perl]  5.20.2-3
pn  sa-compile                 <none>
ii  spamc                      3.4.0-6

Versions of packages spamassassin suggests:
ii  libdbi-perl                                  1.631-3+b1
ii  libio-compress-perl [libcompress-zlib-perl]  2.066-1
ii  libio-socket-ssl-perl                        2.002-2
ii  libmail-dkim-perl                            0.40-1
ii  perl [libcompress-zlib-perl]                 5.20.2-3
pn  pyzor                                        <none>
pn  razor                                        <none>

- -- Configuration Files:
/etc/default/spamassassin changed:
ENABLED=0
OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
PIDFILE="/var/run/spamd.pid"
CRON=1


- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlVRozkACgkQci0IS3Y4ncrf2gCghfc6OOHMgzCk+fYcKWxanXRm
1VYAoImCXThIyRSps56I6l/jL7cOE/dK
=Gjct
-----END PGP SIGNATURE-----
--- /etc/cron.daily/spamassassin.orig	2015-05-12 08:41:58.431225651 +0200
+++ /etc/cron.daily/spamassassin	2015-05-12 08:40:43.603025384 +0200
@@ -48,10 +48,12 @@
 # Tell a running spamd to reload its configs and rules.
 reload() {
     # Reload
-    if which invoke-rc.d >/dev/null 2>&1; then
-        invoke-rc.d spamassassin reload > /dev/null
-    else
-        /etc/init.d/spamassassin reload > /dev/null
+    if [ $ENABLED -ne 0 ]; then
+        if which invoke-rc.d >/dev/null 2>&1; then
+            invoke-rc.d spamassassin reload > /dev/null
+        else
+            /etc/init.d/spamassassin reload > /dev/null
+        fi
     fi
     if [ -d /etc/spamassassin/sa-update-hooks.d ]; then
         run-parts --lsbsysinit /etc/spamassassin/sa-update-hooks.d

--- End Message ---
--- Begin Message ---
Per discussion, this was a duplicate.

--- End Message ---

Reply via email to