The latest release of spamtrainer is available for download on this page.

See current changelog for a complete list of fixes and additions.
Please read our FAQs as well.

spamtrainer assists Mac OS X Server mail services administrators in updating and maintaining their SpamAssassin bayes database.

spamtrainer will read the designated HAM and SPAM mailboxes, update the SpamAssassin databases and delete mail that has been learned from.

It has an array of additional functions. Among them the possibility to backup/restore your bayes database and many more.

This script is written for OS X 10.8.x, 10.9.x and 10.10.x with Server 2.x/3.x/4.x. A separate release is available for earlier OS X versions.

spamtrainer is a free download.

Would you like to stay ahead of changes? Subscribe to our low volume newsletter or follow us on Twitter.

Overall Rating (1)

5 out of 5 stars

Leave your comments

Post comment as a guest

terms and condition.

People in this conversation

Load Previous Comments
  • Hi. Do you know if spamtrainer works under OS X Server 4.0 / Yosemite? I know the script halts if you try to run it on a Yosemite machine, but I've got it installed on a Mavericks server, just wondered if it is likely to run if I upgrade the server to 4 - i.e. will an 'in place' installation continue to work...? If not, is there something I can do to bend the script to work?

    from Maidenhead, Windsor and Maidenhead, UK
    0 Like
  • Guest - Athanasios

    Spamtrainer 2.0.x will not work on Yosemite. 2.1 will be released in November.

    0 Like
  • Guest - peg

    another one that could help

    from Middlesex County, MA, USA
    0 Like
  • Guest - rob

    Does this work out of the box ?
    if so does each user need to create a ham and spam folder or are these folders automatically created ?

    from London, UK
    0 Like
  • Guest - Mike

    I noticed that the "startup_check_new" function doesn't work correctly on Yosemite with Server 4.1. The grep for "learn_junk_mail" doesn't find anything because Apple seems to have changed the script name from "learn_junk_mail" to "". It also seems to be disabled by default, so the fact that the script can't find it won't matter to most people. I don't know when this was changed since I went straight from 10.6.8 to 10.10.3 (not without some difficulty).

    0 Like
  • Guest - Andy

    I noticed your script doesn't support 10.11 , El Capitan . Is there an update in the works?

    from Pompano Beach, FL, USA
    0 Like
  • Guest - Alex

    We are currently testing spamtrainer with Server 5 and will release as soon as ready.

    0 Like
  • Guest - Chris Jenkins

    Rated 5 out of 5 stars

    I'm guessing that this is not yet compatible with El Capitan (due to SIP) and OS X Server 5.0.x? If not, any plans for a compatible version?

    Thanks, Chris

    from Bracknell, UK
    0 Like
  • Guest - Alex

    We are currently testing spamtrainer with Server 5 and will release as soon as ready.

    0 Like
  • Guest - Terven

    Is there any update on the Server 5 testing?

    0 Like

Smart Search


Let us keep you updated.
Subscribe to our newsletter.


  • How can I tell if amavisd-new is running? +

    Sometimes it can happen that you have mail stuck in your mail queue stating: status=deferred (delivery temporarily suspended: connect to[]: Read More
  • Why do vacation messages not work with Roundcube webmail? +

    Even though it may seem counterintuitive, the additional email field is required, even if you have just one email address. Read More
  • Why does ClamAV complain about not being up-to-date? +

    Although the virus definitions database gets update regularly and automatically, the ClamAV applications do not. Sometimes it is not enough Read More
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24