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
  • For others wondering prior to the Mavericks upgrade: I just upgraded to Mavericks and my mail is still being flagged correctly as spam, except the training part is no longer scheduled and can't be rescheduled using -i as the script will tell you the OS isn't supported.

    0 Like
  • 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

Smart Search


Let us keep you updated.
Subscribe to our newsletter.


  • How to edit Roundcube defaults +

    You will find system-wide defaults in this file /usr/local/topicdesk/roundcube/WebApp/config/ For example, to change the help link in Roundcube, change: $rcmail_config['support_url'] Read More
  • Why do mails I send using Outlook get blocked by my own OS X 10.6.x Snow Leopard Server? +

    Snow Leopard Server implements several anti-spam measures in its default Postfix configuration. Unfortunately there are a few glitches, which may Read More
  • Am I entitled to free support? +

    No, but if you ask nicely and your question is related to one of our free tools, chances are you 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