Danny,

> I'm using amavisd-new Version 2.5.0
>
> my policy bank for MYNETS looks like this:
>
> $policy_bank{'MYNETS'} = {  # mail originating from @mynetworks
>
> banned_namepath_re => new_RE(
>   qr'(?#NO X-MSDOWNLOAD)     ^(.*\t)? M=application/x-msdownload
> (\t.*)? $'xmi,
>   qr'(?#NO X-MSDOS-PROGRAM)  ^(.*\t)? M=application/x-msdos-program
> (\t.*)? $'xmi,
>   qr'(?#NO HTA)              ^(.*\t)? M=application/hta
> (\t.*)? $'xmi,
>   qr'(?# BLOCK RFC2046 )     ^ (.*\t)? M=message/partial
> (\t.*)? $'xmi,
>   qr'(?# BLOCK RFC2046 )     ^ (.*\t)? M=message/external-body
> (\t.*)? $'xmi,
> ),
>
> @bypass_banned_checks_maps = (
>     read_hash('/etc/amavis/ignore_internal_banned'),
> ),
>
> };


> But I get this loginformation:
>
> Mar 26 18:20:15 pluto amavis[28332]: (28332-01) (!)loading policy bank
> "MYNETS": unknown field "HASH(0x8535fec)"
> Mar 26 18:20:15 pluto amavis[28332]: (28332-01) loaded policy bank
> "MYNETS"
>
> Is there any error or why say amavis unknown field?

Your $policy_bank{'MYNETS'} hash contains two key/value pairs,
the first is banned_namepath_re with its value,
the second is whatever came out of the expression:
  @bypass_banned_checks_maps =
   (read_hash('/etc/amavis/ignore_internal_banned'))
which is not a key/value pair.

You got the syntax wrong, the assignment to
@bypass_banned_checks_maps should be outside of a
policy bank hash if you want it as a global setting,
or you need to make it into a key/value pair, e.g.:

  bypass_banned_checks_maps => 
    read_hash('/etc/amavis/ignore_internal_banned'),

Mark

------------------------------------------------------------------------------
_______________________________________________
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/ 

Reply via email to