[BlueOnyx:19385] Re: 5207R/5208R/5209R YUM updates

Michael Stauber mstauber at blueonyx.it
Tue Mar 22 11:49:07 -05 2016


Hi DD,

> What's the magic script you're referring to? I must have missed that one.

It's this one:

#!/bin/bash
/sbin/service sendmail stop
killall -9 sendmail
/sbin/service clamav restart
/sbin/service clamav-milter restart
/sbin/service spamassassin restart
/sbin/service spamass-milter restart
/sbin/service milter-geoip restart
/sbin/service milter-greylist restart
/sbin/service sendmail restart

The problem is that Sendmail is very intolerant when you restart Milters
from underneath it while it is processing a message. These restarts work
100% of the time if Sendmail is idle.

But if it's in the processing stage and you restart a Milter, then
you'll get socket issues. All the daemons continue to run, but they
don't "talk" to each others anymore.

Therefore it's usually best to not only restart a Milter (and it's
associated service), but the whole she-bang: Stop Sendmail and kill off
any forked Sendmail child processes as well. Restart the underlying
services that the Milters use, restart the Milters and finally restart
Sendmail.

The above script does that.

I'm working on an AV-SPAM update that with updated Active Monitor
components at this time. It'll check for socket issues, too, and if a
restart needs to be done, it'll do the full restart of all related
services in the right sequence.

I got no ETA on this, but it's got top priority and will be released as
soon as I have worked the kinks out.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list