Azfar wrote:

> i have defined


> @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
>                  203.90.11.8/21 );


> policy_bank{'MYNETS'} = {  # mail originating from @mynetworks
$policy_bank, not policy_bank

> $sa_tag_level_deflt  => [undef],
sa_tag_level_deflt, not $sa_tag_level_deflt
Is this setting different than what is already in amavisd.conf?
Keep in mind the X-Spam headers still will not be written for non
local recipients

> $sa_tag2_level_deflt => [5.0], # add 'spam detected' headers at that level
sa_tag2_level_deflt, not $sa_tag2_level_deflt
Keep in mind the X-Spam headers and Subject: tag still will not be written
for non local recipients

> $sa_kill_level_deflt => [18.0], # triggers spam evasive actions
sa_kill_level_deflt, not $sa_kill_level_deflt

> $sa_mail_body_size_limit => [400*1024],
sa_mail_body_size_limit, not $sa_mail_body_size_limit
Is this different than normal?

> $sa_local_tests_only => [0],
sa_local_tests_only, not $sa_local_tests_only
Is this different than normal?

remove $ from all

> $final_virus_destiny      => [D_BOUNCE],
> $final_banned_destiny     => [D_BOUNCE],
> $final_spam_destiny       => [D_DISCARD],
> $final_bad_header_destiny => [D_BOUNCE],
> };

> but its giving me

> Error in config file "/etc/amavisd.conf": Can't locate object method
> "policy_bank" via package "MYNETS" (perhaps you forgot to load "MYNETS"?) at
> /etc/amavisd.conf

This could be probably be corrected and shortened to:

$policy_bank{'MYNETS'} = {  # mail originating from @mynetworks
  sa_tag2_level_deflt => [5.0],
  sa_kill_level_deflt => [18.0],
  final_virus_destiny      => [D_BOUNCE],
  final_banned_destiny     => [D_BOUNCE],
  final_spam_destiny       => [D_DISCARD],
  final_bad_header_destiny => [D_BOUNCE],
};

Gary V


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/

Reply via email to