SpamAssassin Rules - What services need to be restarted

General eFa discussion
Post Reply
User avatar
crazy4leet
Posts: 9
Joined: 23 Oct 2015 10:20

SpamAssassin Rules - What services need to be restarted

Post 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?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SpamAssassin Rules - What services need to be restarted

Post 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.
Post Reply