> > I've checked the syntax and it seems ok. In fact, log shows that mails
> > are filtered under Amavisd-new, but banned rule doesn't work properly.
> >
> > At log_level 5 I get exactly the same message aqs you.
> >
> > :S
> >
> > Maybe Mark will answer it...
> >
> > --
> > Thanks,
> > Jordi Espasa Clofent
> >
>
> That particular sample I took directly from:
> http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks-ex
>
> I have not tested extensively, but it does not seem to pay any
> attention to anything I place in banned_filename_maps
>

I had better luck by doing this (for example):

%banned_rules = (
  'BLOCK_EXE' =>  new_RE(
 # block double extensions in names:
   qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
 # blocks MS executable file(1) types:
   qr'^\.(exe|exe-ms)$',
 # block these MIME types
   qr'^application/x-msdownload$'i,
   qr'^application/x-msdos-program$'i,
   ),
 'DEFAULT' => $banned_filename_re,
);

$policy_bank{'MYNETS'} = {
  spam_lovers_maps   => [1],  # don't stop spam
  final_spam_destiny => D_PASS,
  banned_filename_maps => ['BLOCK_EXE'],
};

You have to place these after where $banned_filename_re is set.

-- 
Gary V

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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