Debian Tutorials

Debian Tutorials


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

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

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.