On 4/17/08, Louis Munro wrote:
> Hello,
> I am trying to set a different policy (using a policy bank) for outgoing
> email for some networks. I am using postfix with a cidr map to route
> that traffic to a different port on amavisd. I have set up a policy bank
> with different values for some variables but only some of those seem to
> actually have any effect. The others are either ignored or rejected when
> amavis loads the policy banks with a line like :
> (!)loading policy bank "POLICY-OUT": unknown field "spam_quarantine_to"
>
> Here is the policy as configured in amavisd.conf
>
> $policy_bank{'POLICY-OUT'} = {
> log_level => 3,
> spam_quarantine_to => undef,
> spam_kill_level_maps => [7.0],
> spam_dsn_cutoff_level_maps => undef,
> virus_admin_maps => [ '[EMAIL PROTECTED]' ],
> };
>
> $interface_policy{'11025'} = 'POLICY-OUT';
>
> In this case, it sets the $log_level, $spam_kill_level_maps and
> $virus_admin_maps correctly, but the @spam_dsn_cutoff_level_maps is
> unaffected as is the $spam_quarantine_to.
>
> What I want is to never quarantine and always send out a dsn for these
> networks.
>
> Does anyone know what I'm missing?
>
> I'm running postfix 2.2 and amavisd-new 2.5.3.
>
> Thanks,
> Louis
>
spam_quarantine_to is not a valid policy bank key. Read the bottom of
amavisd.conf-default for a list of keys.
quarantine_method_by_ccat => {CC_SPAM, undef},
spam_dsn_cutoff_level_maps => [9999],
spam_dsn_cutoff_level_bysender_maps => [9999],
spam_dsn_cutoff_level_bysender_maps was introduced in 2.4.3, and in a
policy bank it seems you need to set both
spam_dsn_cutoff_level_bysender_maps and spam_dsn_cutoff_level_maps if
your version is 2.4.3 or newer and you want spam bounces. BTW, you
might also need to add:
final_spam_destiny => D_BOUNCE,
--
Gary V
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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/