Page 1 of 1

KAM.cf exception

Posted: 19 Sep 2017 15:22
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

Re: KAM.cf exception

Posted: 19 Sep 2017 20:14
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?

Re: KAM.cf exception

Posted: 20 Sep 2017 06:26
by hiandras
Can you post me an example?

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

Regards, Andras

Re: KAM.cf exception

Posted: 20 Sep 2017 14:44
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