[pkg-fetchmail-maint] Bug#679491: [fetchmail] Spamassassin-Fetchmail depedenty boot order needs fixing

David Baron d_baron at 012.net.il
Fri Jun 29 06:34:55 UTC 2012


Package: fetchmail
Version: 6.3.21-4
Severity: normal

--- Please enter the report below this line. ---
I am including verbatum a posting and answer about this problem:

> The new sysv-rc assined K01 symlinks to fetchmail.
> 
> However, I want to have spamassassin and its rules up beforehand. I have 
been 
> doing this explicitly in what is now rc.local. Fetchmail did not like the 
> duplicated start and my mail wored only after I restarted fetcmail.
> 
> There must be a more correct way to do this.
> 
> ( Meanwhile, I removed the symlinks to allow my rc.local to start fetchmail. 
> The next upgrades will restore them unless I divert. The sysv-rc gave K03 
> symlinks to spamassassin which would mean starting after fetchmail and there 
> is not menion of the rules. )

Looking at the fetchmail init script:

### BEGIN INIT INFO
# Provides:          fetchmail
# Required-Start:    $network $local_fs $remote_fs $syslog
# Required-Stop:     $remote_fs
# Should-Start:      $mail-transport-agent exim4 $named
# Should-Stop:       $mail-transport-agent exim4
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: init-Script for system wide fetchmail daemon
### END INIT INFO

and spamassassin:

### BEGIN INIT INFO
# Provides:       spamassassin
# Required-Start: $remote_fs
# Required-Stop:  $remote_fs
# Should-Start:   $network $syslog
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
### END INIT INFO

So you just need to have
  Should-Start: spamassassin
in the fetchmail script.  And/or
  X-Start-Before: fetchmail
in the spamassassin script.  Then re-run insserv.

I would suggest filing a bug against the fetchmail package asking them
to do the former.

While the dependency info was missing in this case, this is actually
the nice thing about the dependency based boot.  The fetchmail-
spamassassin dependency is implicit with sequence numbers, and not
immediately obvious.  As above, it's explicit and obvious with the
dependencies--it just needs adding!



--- System information. ---
Architecture: i386
Kernel:       Linux 3.2.0-3-686-pae

Debian Release: wheezy/sid
  500 unstable        ftp.us.debian.org 
  500 testing         ftp.us.debian.org 
  100 experimental-snapshots qt-kde.debian.net 
    1 experimental    ftp.us.debian.org 

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-================
libc6                      (>= 2.11) | 2.13-33
libcomerr2                 (>= 1.01) | 1.42.4-3
libgssapi-krb5-2     (>= 1.10+dfsg~) | 1.10.1+dfsg-1
libkrb5-3            (>= 1.6.dfsg.2) | 1.10.1+dfsg-1
libssl1.0.0               (>= 1.0.0) | 1.0.1c-3
debianutils                 (>= 1.7) | 4.3.1
adduser                    (>= 3.34) | 3.113+nmu3
lsb-base                 (>= 3.2-13) | 4.1+Debian7


Recommends           (Version) | Installed
==============================-+-===========
ca-certificates                | 20120623


Suggests                  (Version) | Installed
===================================-+-===========
fetchmailconf                       | 6.3.21-4
default-mta                         | 
 OR mail-transport-agent            | 
resolvconf                          | 









More information about the pkg-fetchmail-maint mailing list