1 (edited by admin@tayra.ru 2016-06-01 15:49:24)

Topic: filtering attached files with amavis-new

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: debianx64 8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi!
I am trying to add extensions to attach filtering using amavis-new.

This topic has seen:
http://www.iredmail.org/forum/topic645- … sdnew.html

My config /etc/amavis/conf.d/50-user have not this code:

@
  qr '. \. (exe | vbs | pif | scr | cpl | mp3) $' i, # banned extension - basic
@

but nevertheless filtering by file type .exe occurs. Where is this list of extensions? How I can modify it?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: filtering attached files with amavis-new

Banned extension can be updated in 2 parameters in Amavisd config file:

$banned_filename_re
$banned_namepath_re

Updating either one should work.

To get list of extensions, you can check file /etc/mime.types.

3

Re: filtering attached files with amavis-new

ZhangHuangbin wrote:

Banned extension can be updated in 2 parameters in Amavisd config file:

$banned_filename_re
$banned_namepath_re

I have not this parameters in my default config: /etc/amavis/conf.d/50-user
In what config file this parameters take place?

4

Re: filtering attached files with amavis-new

Debian/Ubuntu have it defined in other config files under /etc/amavis/conf.d/

5

Re: filtering attached files with amavis-new

ZhangHuangbin wrote:

Debian/Ubuntu have it defined in other config files under /etc/amavis/conf.d/

It's in /etc/amavis/conf.d/20-debian_defaults

Thank you!