Bill,

Wow.  Thank you so much for the info.  I'll start digesting all of this and make sure I have everything set up per the instructions.

BTW.. the 'it' I referred to is the headers info in "/usr/share/spamassassin/local.cf":

# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
=========================

-- and "/etc/mail/spamassassin/local.cf":

# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

==========================

As someone who did decades of teething on Windows and is very late to the party with linux, I really appreciate your additional clarification of /usr being static, etc.  But not knowing that.... the local.cf header is a bit misleading.

Again, thank you so much for the detailed explanations.

Jerry


On 10/20/2021 1:39 PM, Bill Cole wrote:
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.



Reply via email to