This is a discussion on Re: [AMaViS-user] difficulty setting outgoing policy-bank within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; On 4/17/08, Gary V wrote: > On 4/17/08, Louis Munro wrote: > > Hello, > > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 4/17/08, Gary V wrote:
> 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 => [ 'virusadmin@example.com' ], > > }; > > > > $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, > But since you are discarding mail, I wonder if it might be better to pass the spam, but notify the sender (depending on whether the senders are considered spammers or not). final_spam_destiny => D_PASS, warnspamsender => 1, I'm not sure if warnspamsender works here, or if it would require some form of warnsender_by_ccat => (of which the syntax eludes me). -- 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;198757...un.com/javaone _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |