Page 1 of 1

Whitelist is not work when missing "To" filed

Posted: 07 Jun 2016 04:07
by WilliamMok
Hi

I am setting a whitelist with xxx.com to xxx2.com. When user sending email without "To" filed and only "CC" all the email address.

The Whitelist is not work on this situation and spam report 1.21 MISSING_HEADERS Missing To: header. Finally this mail is marked "Spam".

How can i reduce the score of the MISSING_HEADERS ? if there are any idea to bypass the checking with specific email domain?

Hope someone can help. Many thanks.

Re: Whitelist is not work when missing "To" filed

Posted: 07 Jun 2016 12:05
by ovizii
to adjust scores, simply create a myadjustedscores.cf file inside /etc/mail/spamassassin/ and add a line like:

Code: Select all

score   MISSING_HEADERS                        X

X being the score you would like to assign to this rule.

Re: Whitelist is not work when missing "To" filed

Posted: 08 Jun 2016 23:56
by shawniverson
:text-goodpost:

Re: Whitelist is not work when missing "To" filed

Posted: 10 Jun 2016 07:38
by WilliamMok
ovizii wrote:to adjust scores, simply create a myadjustedscores.cf file inside /etc/mail/spamassassin/ and add a line like:

Code: Select all

score   MISSING_HEADERS                        X

X being the score you would like to assign to this rule.
Thank ovizii!

i hv found a file located at /etc/MailScanner/spam.assassin.prefs.conf

When i add this code to the file.

Code: Select all

score   MISSING_HEADERS                        X


The scoring is work. Hope can help someone in same problem.

Re: Whitelist is not work when missing "To" filed

Posted: 10 Jun 2016 09:34
by pdwalker
The best place to put that is in the local.cf. That way it won't be overwritten during an upgrade, and you know that these entries will be loaded last.