Peter,

> I want to quarantine all  SPAM mail sent from local => extern to a local
> mailbox spambin And LABEL SPAM all mail sent from extern => local

What should happen to internal-to-internal spam?

"To a local mailbox spambin" ? Does this imply that you need it
in a single file in mbox format? In this case the $QUARANTINEDIR
needs to be a file (not directory), or you need to make another
entry in the %local_delivery_aliases
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine

> But I can't find a way to do this using policy banks.
> 
> I have the variable:
>   $spam_quarantine_to = 'spambin;
> But this is an overall setting which I can't modify in the policy banks !

True, but the @spam_quarantine_to_maps is overridable by policy banks
(e.g. using a 'constant' type of a (pseudo) lookup table):

  spam_quarantine_to_maps => [ 'spambin' ],
 
> I have tried to set the spam_quarantine_to_maps => [ ['spambin'] ]
> 
> But this has no effect.
> What can I do to achieve this


"To a local mailbox spambin" ? Does this imply that you need it
in a single file in mbox format? In this case the $QUARANTINEDIR
needs to be a file (not directory), or you need to make another
entry in the %local_delivery_aliases
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine


$local_delivery_aliases{'spambin'} =
  sub { ("$QUARANTINEDIR/spambin.mbox", undef) };

$sa_tag2_level_deflt = ...;
$sa_kill_level_deflt = $sa_tag2_level_deflt;
$final_spam_destiny = D_PASS;
@spam_quarantine_to_maps = ();

$policy_bank{'MYNETS'} = {
  originating => 1,
  spam_quarantine_to_maps => [ 'spambin' ],
  spam_quarantine_method => 'local:',
  final_spam_destiny => D_DISCARD,
};


Mark

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to