Gary wrote:
> Robert wrote:
>> Is it possible to pass and mark as spam in the subject line for only one
>> domain passing through our Postfix+Amavisd-new+SA gateway server?
> Are you talking about a sending domain or a recipient domain? What
> action (if any) should be taken for the remaining domains?
I will assume recipient domain, and no action taken for others. I
will also assume you want banned files checked and viruses checked.
$mydomain = 'example.com';
@local_domains_maps = ( [".$mydomain", '.example.net'] );
@bypass_spam_checks_maps = (
{ '.example.com' => 0 }, # bypass spam checks = false
1 # everyone else, bypass spam checks = true
);
# apply the above to everything else:
@bypass_banned_checks_maps = @bypass_header_checks_maps =
@bypass_virus_checks_maps = @bypass_spam_checks_maps;
@spam_lovers_maps = (
{ '.example.com' => 0 }, # loves spam = false
1 # everyone else, loves spam = true
);
# apply the above to everything else:
@banned_files_lovers_maps = @bad_header_lovers_maps =
@virus_lovers_maps = @spam_lovers_maps;
$final_spam_destiny = D_PASS;
$sa_kill_level_deflt = 9999; # since we pass, don't quarantine
@spam_tag_level_maps = (
{ '.example.com' => -999, }, # we want headers tagged
9999 # no one else wants headers tagged
);
@spam_tag2_level_maps = (
{ '.example.com' => 6.31, }, # we tag subject
9999 # no one else wants subject tagged
);
$sa_spam_subject_tag = '***SPAM*** ';
If you use Postfix you can also do this by using a second IP address
and changing the MX record so mail goes there instead of the existing
address. Then only enable content_filter for that address:
http://www200.pair.com/mecham/spam/bypassing.html#3
Gary V
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/