Whitelist is not work when missing "To" filed

General eFa discussion
Post Reply
WilliamMok
Posts: 2
Joined: 05 May 2016 02:25

Whitelist is not work when missing "To" filed

Post 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.
ovizii
Posts: 463
Joined: 11 May 2016 08:08

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

Post 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.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson »

:text-goodpost:
WilliamMok
Posts: 2
Joined: 05 May 2016 02:25

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

Post 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.
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

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

Post 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.
Post Reply