Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

August 2019
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories


Blacklisting e-mail addresses using MailScanner

Ástþór IPÁstþór IP

1. 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

Comments 0
There are currently no comments.