(dv) 4.0:How to stop receiving sa-update cron email
- This page was last modified on April 20, 2011, at 15:02.
From (mt) Community Wiki
Contents |
Overview
SpamAssassin is the spam filtering software that comes installed on your (dv) Dedicated-Virtual Server. sa-update is a utility which updates the spam filtering rules for this software. There is a cron job which comes installed on your (dv) Dedicated-Virtual Server that checks for these updates every day. With the default configuration, if an update is found, you'll receive a cron job which contains the output of commands to restart the SpamAssassin service in order to read the new filters.
This guide will show you how to update the cron job so that the sa-update program still runs, but does so silently without triggering an email when the rules are successfully updated.
Before you start
This article assumes the following:
- root access has been enabled
Instructions
1. Log into your (dv) Dedicated-Virtual Server via SSH. For more information, please see: (dv):SSH connection.
2. Make a backup of the current file. Run this command as root via ssh:
mv /etc/cron.daily/60sa-update ~
2. Edit a new /etc/cron.daily/60sa-update file so it looks like this (copy and paste code into a new plain text file for best results):
#!/bin/sh /usr/bin/sa-update && /etc/init.d/psa-spamassassin restart >> /var/log/sa-update.log 2>&1; exit $?