1

Topic: Block Double Extension with AMAVIS in 50-user file

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I want to block double extension but still alow zip files

test.zip is okay
test.exe.zip is not okay


50-user

I found this in the forums, and I added this but it doesn't seem to do anything.

$banned_filename_re = new_RE(
# block certain double extensions in filenames
   qr'^(?!cid:).*\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,
);

cat /etc/iredmail-release:  0.9.6

----

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