Jaymon / stockton

Quickly setup an email server to forward a personal domain to any email address
Other
4 stars 0 forks source link

header_checks #33

Open Jaymon opened 8 years ago

Jaymon commented 8 years ago

create /etc/postfix/header_checks.regexp with contents:

/^X-Spam-Level: \*{7,}.*/ DISCARD spam

And then add this to main.cf:

header_checks = regexp:/etc/postfix/header_checks.regexp

And restart postfix:

postfix reload

This should discard spam above score 7 so it doesn't even get forwarded, spam between 5-7 will still get forwarded with SPAM in the subject.

I'm testing this on my server, which I did manually, but it needs to be automated

via and via