Tag spam only for recipients from a domain

Scappatura Rocco Rocco.Scappatura at infracom.it
Mon Jun 5 16:46:02 CEST 2017


Hi,

I have Debian Lenny with postfix+amavisd-new+spamassassin+clamav.

The settings of amavisd-new port tagging spam are the following:

$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent

$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0;    # only tests which do not require internet access?

$final_banned_destiny     = D_DISCARD;   # D_REJECT when front-end MTA

I need that the messages for recipents of a particular domain (say, example.com) will be scanned as all other messages. Moreover (Unlike the other domains), I would like that the messages for recipents of domain 'example.com', even if the score is >6.31, will not been discarded but have to be marked as SPAM and delivered. 

How I could get a such behaviour from my mail gateway?

Regards,

RS


More information about the amavis-users mailing list