> Gary wrote: >> $policy_bank{'MYNETS'} = { # clients in @mynetworks >> spam_lovers_maps => [[qw( .example.com .example.net )]], >> final_spam_destiny => D_BOUNCE, >> spam_dsn_cutoff_level_maps => 9999, >> };
> Mark, this works in 2.4.2, but no DSN is created in 2.4.3. Mark wrote: > With 2.4.3 there is also @spam_dsn_cutoff_level_bysender_maps, > besides the @spam_dsn_cutoff_level_maps. Both lookup lists > include a $sa_dsn_cutoff_level by default: > @spam_dsn_cutoff_level_maps = (\$sa_dsn_cutoff_level); > @spam_dsn_cutoff_level_bysender_maps = (\$sa_dsn_cutoff_level); > DSN is suppressed if either by-recipient or by-sender limit is exceeded. > So a policy bank needs to replace both in order to override > a default: > $policy_bank{'MYNETS'} = { # clients in @mynetworks > spam_lovers_maps => [[qw( .example.com )]], > final_spam_destiny => D_BOUNCE, > spam_dsn_cutoff_level_maps => 9999, > spam_dsn_cutoff_level_bysender_maps => undef, > }; > btw, each of the following would be ok: > spam_dsn_cutoff_level_bysender_maps => undef, > spam_dsn_cutoff_level_bysender_maps => [], > spam_dsn_cutoff_level_bysender_maps => 9999, > Mark Thanks Mark. Yes, I'm aware. I used 9999 because in some (older) versions of amavisd-new setting spam_dsn_cutoff_level to undef (incorrectly) resulted in 0, so I use this for backward compatibility. I found it interesting that 2.4.2 did not croak when I added spam_dsn_cutoff_level_bysender_maps => undef, to the policy bank. I can add arbitrarily named items and amavisd-new won't complain (not that it necessarily should). The only obvious issue with that would be if someone misspelled a setting, they wouldn't know it. Gary V ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/