Page 1 of 1

SpamAssassin Rules - What services need to be restarted

Posted: 06 Jan 2017 03:56
by crazy4leet
Hello All,

Bit of a noob question here.

But when you write a custom SA rule in /etc/mail/spamassassin/local.cf what do you need to run/restart to update the rules.

I have tried

Code: Select all

sudo service MailScanner restart
I notice that spamd doesn't run as a service. (assuming called by MailScanner on demand/child process)

If I reboot the new rule comes into effect. But don't really want to be rebooting while I am writing new rules.

On another note, I am writing rules for offensive words in subject header, are rules still the best way for this, I noticed a post mentioning MCP isn't advised by MailScanner anymore and SA Rules are best. Accurate?

Re: SpamAssassin Rules - What services need to be restarted

Posted: 07 Jan 2017 01:16
by shawniverson
When you make a custom SA rule, you will want to run sa-update and sa-compile

MCP is just another instance of SpamAssassin, so yeah, if you don't need the actual MCP label, it is best to just use SA without the MCP option.