To update the spamassassin rules regularily on your ISPConfig 3 server, add the following line to the root crontab by running:

crontab -e

then insert the following line:

23 4 */2 * * /usr/bin/sa-update --no-gpg &> /dev/null

and save the file. The path to the sa-update script is /usr/bin/sa-update on Ubuntu and Debian Linux, if you use a different linux distrubution, run the command:

which sa-update

to find the location of the sa-update script and adjust the path in the crontab line above so that it matches the path on your system.

Keep the spamassassin filter rules up to date in ISPConfig 3
Tagged on:     

6 thoughts on “Keep the spamassassin filter rules up to date in ISPConfig 3

  • February 6, 2010 at 1:24 am

    for debian, the correct command is:

    /usr/bin/sa-update –no-gpg &> /dev/null

    (notice the two ‘-‘

  • February 6, 2010 at 7:34 pm

    Thanks for noticing me. Thats a display problem in worpress, it changes – – (without the whitespace between it) to a special html character which looks like – in the browser. I will have to check the wordpress sources, very annoying 🙁

  • March 24, 2010 at 4:29 am

    By default, I have a spamassassin entry in the /etc/cron.daily folder. Looking at the script, it appears to run sa-update.

    I have a Debian Lenny server with ISPConfig3 installed. Does this FAQ provide additional functionality beyond what I already have in the cron.daily folder?

    • September 16, 2016 at 12:12 pm

      Looking at the script…

      if [ “$CRON” = “0” ] ; then
      exit 0

      be sure to set CRON=1 at the beginning of the script

  • August 30, 2012 at 2:37 pm

    For CENTOS6 :
    /usr/bin/sa-update –nogpg

    have a nice day.

  • September 7, 2017 at 12:24 pm

    for debian 8:
    /usr/bin/sa-update –nogpg

    (nogpg in one word)

    have a nice day…


Leave a Reply

Your email address will not be published. Required fields are marked *