KAM.cf exception

Questions and answers about how to do stuff
Post Reply
hiandras
Posts: 22
Joined: 25 Jul 2017 08:59

KAM.cf exception

Post by hiandras »

Hi,

In the /etc/mail/spamassassin/KAM.cf file, there is a rule:

#NetWeaver
header KAM_NW X-Mailer =~ /SAP NetWeaver/i
score KAM_NW 3.0
describe KAM_NW Spam Indicator

Since SAP NetWeaver mails are sent from SAP, and we receive this kind of mails, I want to disable this rule.

I found in another thread, that I should add an exception to /etc/mail/spamassassin/local.cf file,
creating a rule to KAM_NW and set the score to 0.

How to create a rule like this?

I tried adding
score KAM_NW 0 at the end of the file, but it does not mike any effect.

Regards,
Andras
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: KAM.cf exception

Post by pdwalker »

/etc/mail/spamassassin/local.cf?

That's where I've placed my KAM_ adjustments and it works for me. Maybe there is another problem in your file?
hiandras
Posts: 22
Joined: 25 Jul 2017 08:59

Re: KAM.cf exception

Post by hiandras »

Can you post me an example?

Do you need to restart MailScanner and/or Spamassassin after editing local.cf?

Regards, Andras
hiandras
Posts: 22
Joined: 25 Jul 2017 08:59

Re: KAM.cf exception

Post by hiandras »

I got it working.

You just have to put the following (just an example):

# KAM.cf exceptions
score KAM_NW 0.01

at the end of local.cf and wait.
I tried to restart Mailscanner/spamassassin, but it did not help.

Regards, Andras
Post Reply