Ralf Hildebrandt skrev: > * Anders Norrbring <[EMAIL PROTECTED]>: > >> AFAIK, no. But SpamAssassin need to lint the new rulesets, so I've added >> a lint into my update script, like this: >> >> cat /etc/cron.daily/spamassassin >> #!/bin/sh >> >> /usr/bin/sa-update -D --channel saupdates.openprotect.com --channel >> updates.spamassassin.org --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 >> sa_exit=$? >> >> if test $sa_exit = 4; then >> echo "Problem with sa-update.." >> elif test $sa_exit = 1; then >> echo "No SA updates available.." >> elif test $sa_exit = 0; then >> echo "SA updates downloaded and installed." >> /usr/bin/spamassassin --lint >> fi > > Just lint them? What happens if the --lint fails? > Shouldn't that be caught? > > "Syntax-check the current set of rules. Returns the number of syntax > errors discovered, or 0 if the configuration is valid." > > So, if the exit status != 0, then something evil is a foot, isn't it? >
Absolutely true, and at the end there should be a amavisd restart as well, my mistake... ;) Or maybe a amavis RELOAD is enough, not doing a complete restart? Mark? -- Anders Norrbring Norrbring Consulting ------------------------------------------------------------------------- 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/