spam assassin rules update

Tom Hendrikx tom at whyscream.net
Tue Oct 16 10:02:17 CEST 2012


On 10/16/12 9:33 AM, Nikolaos Milas wrote:
> On 28/9/2012 3:41 μμ, Nikolaos Milas wrote:
> 
>> When I run simply "/usr/bin/sa-update -D", everything seems to run
>> smoothly. 
> 
> As an update, I am now using the following line in /etc/cron.d/sa-update:
> 
> 10 3 * * * root /usr/bin/sa-update -D | tee -a /var/log/sa-update.log &&
> /etc/init.d/amavisd condrestart
> 
> Unfortunately nothing gets logged in sa-update.log (so I guess "| tee -a
> /var/log/sa-update.log" could be left-out) but at least I get an
> automatic email (by the cron system) with all the output of the above
> commands, so I know what's happening.
> 

sa-update talks to stderr, so for the above to work, you'll need
something like:

/usr/bin/sa-update -D 2>&1 | tee -a /var/log/sa-update.log

--
Tom


More information about the amavis-users mailing list