On 4/5/08, Voytek Eymont wrote:
> I have users that need to send executables and the like via email,
> currently, amavis rejects them with 'banned message', asking for encrypted
> ZIPs (see below)
>
> I edited /etc/amavis.conf as below, adding 'zip'
> ----
> ### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:
> # ve 04/04/2008 added 'zip' below
>  [ qr'^\.(zip|gz|bz2)$'             => 0 ],  # allow any in gzip or bzip2
>  [ qr'^\.(rpm|cpio|tar)$'       => 0 ],  # allow any in Unix-type archives
>
>  qr'.\.(pif|scr)$'i,                     # banned extensions - rudimentary
> # qr'^\.zip$',                            # block zip type
>
> ### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:
>  [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ],  # allow any within these archives
> ----
> reloaded amavis,, but still get rejected
>
> rejection message:
>
> ----
>
> BANNED message from you (multipart/mixed |
> application/x-zip-compressed,.zip,BitTorrent-6.0.2.zip |
>
> BANNED CONTENTS ALERT
>
> Our content checker found
>    banned name: multipart/mixed |
>      application/x-zip-compressed,.zip,BitTorrent-6.0.2.zip |
>      .exe,.exe-ms,BitTorrent-6.0.2.exe
> --
> Voytek

It was rejected because it's an .exe file. You might move it up, before this:

### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
  qr'^\.(exe-ms|dll)$',                   # banned file(1) types, rudimentary
# qr'^\.(exe|lha|tnef|cab|dll)$',         # banned file(1) types

-- 
Gary V

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