Spamassassin Backup

spam If you do regular backups of your servers, when you come to restore you nearly always find something you didn’t realise you should have backed up.  One thing that can slip through the net on Linux mail servers is the spamassassin database.  If you use a cron job to analyse your spam messages everyday and learn from them, spamassassinwill have created a database of identifiers and tokens which can be lost if not backed up.

To create a backup of the database simply issue the following command (ideally in a daily cron job):

sa-learn –backup /etc/spamassassin/db-backup.txt

This will create a text file called db-backup.txt which is easy to backup in your regular routine and can be restored by:

sa-learn –restore=/etc/spamassassin/db-backup.txt

0 Responses to “Spamassassin Backup”


  1. No Comments

Leave a Reply


Enter this code