On 2021-10-20 at 12:50:17 UTC-0400 (Wed, 20 Oct 2021 11:50:17 -0500)
Jerry Malcolm <[email protected]>
is rumored to have said:

> As I said in a previous post, I'm installing clean.  I'm looking for a way to 
> validate the installation and make sure that everything with SA is working as 
> it should.  I'm pretty confident I've got the basic SA function working.  But 
> along with the bayes issue from a couple of posts back, I can't seem to make 
> the KAM.cf file get involved.  In previous installations, I would see a lot 
> of KAM rules showing up in the spam reports on emails.  I also have written 
> some rules on my own and put them in a similar file next to KAM.cf in 
> /usr/share/spamassassin.  But I'm not seeing any of my rules get hit.

Clean that out. Nothing belongs in /usr/share/spamassassin that wasn't 
installed by the package manager or 'make install' if you built from the 
distribution yourself.

If you configure the KAM channel as documented at 
https://mcgrail.com/template/kam.cf_channel you will get its files in the right 
place.


> I created a rule that triggers if the subject or sender is my company name.  
> I sent an email from an outside email address and specifically added this 
> name to the subject (and it's also in my sender email address).  Nothing in 
> the spam report.  If I understand things correctly, that is telling me that 
> my custom .cf file isn't even being loaded.  So, where is the magic spot to 
> put my custom .cf and the KAM.cf files so they will get used?

Custom local rules for all users go in /etc/mail/spamassassin/*.cf files.

If you use an outside ruleset that is not available as a sa-update channel, put 
its *.cf file(s) in /etc/mail/spamassassin/ next to local.cf. *.cf files in 
/etc/mail/spamassassin/ are loaded in lexical order with later directives 
overriding earlier ones.



-- 
Bill Cole
[email protected] or [email protected]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to