Hello,
I am having some difficulty setting differing attachment filtering 
policies for a domain (for mime types, extensions etc.)
I have a server running amavisd-new 2.5.3 for a number of domains. On 
one of those domains I want to have two different policies, one for the 
administrators and one for the common man (or woman). I need to set 
these policies while still having a (third) policy for the other domains 
  which are not as restrictive in their use of attachments.

I understand that @banned_filename_maps is what determines which policy 
applies to who. What I want to avoid is having to list all the addresses 
for this domain as that is not practical given the number of users.

Here is how I have configured amavisd.conf:

@banned_filename_maps = ( { '[EMAIL PROTECTED]' => 'EXAMPLE-ADMIN',
                              'example.com' => 'EXAMPLE-DEFAULT',
                             '.' => 'DEFAULT',
                             } );

$banned_namepath_re = undef;  # to disable new-style


%banned_rules = (
   'MYNETS-DEFAULT' => new_RE(   # permissive set of rules for internal 
hosts
     [ qr'^\.(rpm|cpio|tar)$' => 0 ],  # allow any name/type in Unix 
archives
     qr'.\.(vbs|pif|scr)$'i,     # banned extension - rudimentary
   ),
   'EXAMPLE-ADMIN' => $banned_filename_example_admin_re,
   'EXAMPLE-DEFAULT' => $banned_filename_example_default_re,
   'DEFAULT' => $banned_filename_re,
);

Unfortunately that doesn't seem to work. All example.com users 
(including admins) are filtered according to the EXAMPLE-DEFAULT policy. 
It seems 'example.com' beats '[EMAIL PROTECTED]'.

Does anyone know of a way around that problem?
I would be much obliged for any help.

Louis





-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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