Amavisd-new : Filtrage en sortie sur le contenu des fichiers et l'oversized

J. Echter j.echter at echter-kuechen-elektro.de
Thu Jun 18 20:14:51 CEST 2015


Am 04.06.2015 um 12:08 schrieb Olivier Nicole:
> In English...
>
>> Bonjour,
> Hello,
>
> I use amavisd-new versions 2.8 and 2.10, I'd like to do some output filtering
> according to the contents and size of the file. It does not work.
>
> I my policy_bank I have the folling lines:
>
> $policy_bank{'BAN_0'} = {
>
> 'forward_method' => 'smtp:[127.0.0.1]:2525',
> 'syslog_ident' => 'amavis-outgoing',
> 'final_banned_destiny' => D_DISCARD,
> 'bypass_banned_checks_maps' => [0],
> 'banned_files_lovers_maps' => [0],
> @banned_filename_maps => [
>         new_RE(
>               [
> qr'^application/vnd.openxmlformats-officedocument.wordprocessingml.document$'i
> ],
>               [ qr'.\.(docx)$'i ],
>               [
> qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl|lha|cab|dll|jar|war|ocx)$'i ],
>               [ qr'^application/x-msdos-program$'i ],
>               [ qr'^application/hta$'i ],
>               [ qr'^application/octet-stream$'i ],
>               ),
> ],
>
> 'warnbadhsender' => 0,
> 'warnbannedsender' => 1,
>
> };
>
> When I send a test file .exe or .docx, the message is always being
> delivered and is not blocked.
>
> What is missing in my configuration to have the output filtering being
> activated?
>
> Thanks for your help.
maybe the right unpack tool isn't installed?


More information about the amavis-users mailing list