Thomas,

> Until now i configured amavisd-new only to mark and score spam with
> spamassassin but always send it to the recipient.
>
> $final_spam_destiny = D_PASS
>
> It works for all domains.

The $final_*_destiny settings apply a default to a message as a whole,
it is not a per-recipient setting.

> Is it possible to change this behavior for just one domain of several
> local domains?

The solution is in various @*_maps lookups, which work on a
per-recipient basis: @spam_lovers_maps, @spam_tag2_level_maps,
@spam_kill_level_maps, ...

> I want to delete all spam mails to mydomain2.com immediately (D_DISCARD)

$final_spam_destiny = D_DISCARD;  # (or D_BOUNCE)

> but send through all spam to mydomain1.com (D_PASS).

@spam_lovers_maps temporarily overrides the default $final_spam_destiny
with a D_PASS for matching recipients.

> Everything to mydomain1.com should still be scanned and marked 
> in the header as spam or non spam.

This is by default. Markings start at tag2_level (which is often
the same as kill_level), and a recipient domain must be local
(must match @local_domains_maps). Quarantining starts at kill_level.

  Mark

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to