1

Topic: Blocking of archives

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian 8.2
- 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 want to set up lock of all types of the archives transferred as attachments. Attachments with extension of exe, bat and so on are by default locked. I rummaged all settings, but I didn't find where this setup to add still rar, zip, 7z.
I ask for help.

----

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

2

Re: Blocking of archives

/etc/amavis/conf.d/20-debian_defaults

But you should add the following lines in 50-user

$banned_filename_re = new_RE(
qr'.\.(rar|zip|7z)$'i,
qr'^\.(rar|zip|7z)$'i,
);

3

Re: Blocking of archives

reno31 wrote:

/etc/amavis/conf.d/20-debian_defaults

But you should add the following lines in 50-user

$banned_filename_re = new_RE(
qr'.\.(rar|zip|7z)$'i,
qr'^\.(rar|zip|7z)$'i,
);

Works. Thank you very much.
But here for some reason the otboyny letter from the server doesn't come