Avoid receiving spam : senderscore filter

Senderscore keeps a database of mail server reputation.

Havin a moderate reputation doesn't mean much, but having a bad one means the server already has sent spams before.

You can use a filter in smtpd to recognize as spam incoming mails according to senderscore.

Install opensmtpd-filter-senderscore port.

Then, edit /etc/mail/smtpd.conf to add a filter :

filter senderscore \
         proc-exec "filter-senderscore -junkBelow 70 -slowFactor 2000"
listen on all tls pki athome.tld filter { senderscore }