Knowledge Base

Exchange Server Toolbox



Question / Problem

Can I create my own SpamAssassin rules, and where can I store them?

Answer / Solution

Yes, you can use the build in custom SpamAssassin config file editor which you can find under Spam Options to create a .cf-file suited to your needs.


For further references see:
http://wiki.apache.org/spamassassin/WritingRules
https://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.html


Alternatively you can create a .cf-file manually and store it together with all the other .cf-files. Because SpamAssassinprocesses the .cf-files in alphabetical order, you should call your own.cf-file in a way, that it will be processed last (e.g. use x, y, z as firstletter of your file’s name : XMySettings.cf).