rocsca,

> $0 stop
> sleep 2
> /usr/local/bin/delete_amavis_tmp.sh
> rm -rf /var/amavis/scan/*
> $0 start

To restart as quickly as possibly (hoping Postfix
wouldn't notice), you may want to avoid a 'sleep',
rename a temp directory instead of deleting it immediately,
and create a new one, do 'amavisd reload' and only then
(after some sleep) delete the previously renamed directory.

On a general note I prefer to restart amavisd only
manually and only at times when it is not under full
load. This way I can be around to see if channels update
(or third-party ClamAV signatures update) was successful
and whether amavisd restart was successful and to make
sure Postfix did not declare a transport as temporarily
unavailable.

An quick amavisd restart under a light load (most of
child processes idling) is usually taken by Postfix
lightly, no action is needed. If you are in a hurry
and there are not many messages in a queue waiting
to be delivered, a 'postfix flush' can be used.

Under a heavy load (most child processes busy, lots of
mail waiting to be forwarded to a content filter), it
is quite likely that Postfix will take offence and hold
back retry attempts for a while. A 'postfix reload'
at such a state lets if forget that a content filter
was down, and retry it immediately. This is a rather
radical measure and should not be done lightly, certainly
not automatically. Settings suggested by Noel would
help too in such situation.

Anyway, while I'm on vacation, I prefer not to run
any automatic updates on SpamAssassin rules and on
ClamAV signatures, in favour of stability.

  Mark

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to