In this tutorial we’ll install the Debian Linux 9 (squeeze), Apache 2 with mpm-itk (to run each web as a isolated user),...
Blacklisting e-mail addresses using MailScanner
Ástþór IP1. Create a new file containing the blacklisted e-mail addresses (pico /etc/MailScanner/rules/spam.blacklist.rules)
FromOrTo: [email protected] yes
FromOrTo: [email protected] yes
FromOrTo: default no
2. Configure MailScanner to handle all messages in the blacklist as spam (pico /etc/MailScanner/MailScanner.conf)
Replace this line:
Is Definitely Spam = no
with this:
Is Definitely Spam = %rules-dir%/spam.blacklist.rules
If you want to handle all messages from blacklisted e-mail addresses like high scoring spam, change this property:
Definite Spam Is High Scoring = yes
3. Restart MailScanner
/etc/init.d/mailscanner restart