Sometimes, despite all the efforts to thwart spam, a message with offensive content will slip through.
You can use Message Content Protection to thwart these emails. You can also delete them completely so that they do not appear at all.
By default, MCP is disabled. Here's an example configuration.
To enable, edit the following lines
/etc/MailScanner/MailScanner.conf
Code: Select all
First Check = mcp
MCP Checks = yes
MCP Actions = store-mcp
High Scoring MCP Actions = store-mcp
Remove the example file
Code: Select all
rm /etc/MailScanner/mcp/10_example.cf
/etc/MailScanner/mcp/10_offensive.cf
Code: Select all
header OFFENSIVE_RULE1 Subject =~ /sexy/i
describe OFFENSIVE_RULE1 Banned Subject sexy
score OFFENSIVE_RULE1 5
body OFFENSIVE_RULE2 /sexy/i
describe OFFENSIVE_RULE2 Banned body text sexy
score OFFENSIVE_RULE2 5
Reload MailScanner
Code: Select all
service MailScanner reload