Disable Double Extension
Posted: 27 May 2022 08:14
How do I diable double extensions !??
I tried this but the file is READ only so can't save it !
-------
The second (allow double file extenstions) is configured in /etc/Mailscanner/filename.rules.conf
Scroll all the way down and find the 2 lines:
# Deny all other double file extensions. This catches any hidden filenames.
deny \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$ Found possible filename hiding Attempt to hide real filename extension
Just comment the deny out and restart Mailscanner.
-------------
I tried this but the file is READ only so can't save it !
-------
The second (allow double file extenstions) is configured in /etc/Mailscanner/filename.rules.conf
Scroll all the way down and find the 2 lines:
# Deny all other double file extensions. This catches any hidden filenames.
deny \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$ Found possible filename hiding Attempt to hide real filename extension
Just comment the deny out and restart Mailscanner.
-------------