Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43476

Block Double Extension with AMAVIS in 50-user file

$
0
0

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


Viewing all articles
Browse latest Browse all 43476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>