So upon doing some more research and work, and testing on MY system, this is, I believe, the correct answer for most installations, and should not cause any problems for any installations:

### BEGIN INIT INFO
# Provides:          amavisd-new
# Required-Start:    $syslog $network $local_fs $network $named $time
# Required-Stop:     $syslog $network $local_fs $network
# Should-Start:      postgresql mysql ldap clamav-daemon
# Should-Stop:       postgresql mysql ldap clamav-daemon
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts amavisd-new mailfilter
# Description:       Launches the amavisd-new mailfilter
### END INIT INFO


The only question is, should local_fs be, more conservatively, remote_fs?

The "should" stuff will be counted only if there are packages that provide the servers in question.

As you can see, this will start amavisd-new either at the same time, or before the MTA. I think that's more proper than my earlier solution of starting it after the MTA, as there is a tiny window where the MTA could attempt to receive mail and amavis isn't ready.

Please consider incorporating this patch into the next update. Again, it shouldn't break things that don't have any of the "should" severs (or do).



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to