How to use SPAMTRAPs with Postfix,Spamassassin,Linux?


Create local user [spammerswelcomehere].

In /etc/aliases add line [spammerswelcomehere]:[space or tab]"|/usr/bin/sa-learn --spam".
Execute following command: postmap[space]/etc/aliases.

For virtual domain spamtraps.
Add following line "[spamtrapaddress@yourdomainname.com][space or tab][spammerswelcomehere]" to /etc/postfix/virtual. Execute "postmap[space]/etc/postfix/virtual".

For local addresses add following line to /etc/aliases: "someusername[space or tab][spammerswelcomehere]". Execute command "postmap[space]/etc/aliases".

 

Tail mail logs to see if all working right.

Last update:
2015-03-20 16:42
Author:
Admin
Revision:
1.1
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.