Gary V wrote: > Myself, I would be more inclined modify amavisd and run this once a day: > > sa-update --nogpg --updatedir \ > /var/amavisd/var/lib/spamassassin/3.001004 && amavisd reload
SA-Update returns with code 1 when there are no new rules. Do you want to restart amavisd when there are no new rules? #!/bin/sh /usr/local/bin/sa-update --channelfile \ /var/lib/spamassassin/update-channels.txt --gpgkey 856AA88A status=$? if [ $status -eq 0 ] then /usr/local/bin/sudo /usr/local/sbin/amavisd reload else if [ $status -ne 1 ] then echo "ERROR: SA-update appears to have failed." fi fi -- Jo Rhett Network/Software Engineer Net Consonance ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/