Page 1 of 1

Block xz file extensions

Posted: 30 Mar 2019, 08:13
by spamkiller
Hello,

Can anyone suggest me how to block .xz file extensions? I already edited filename.rules.conf with this new line

deny \.xz$ - -

but still not working. Can anyone please help? Thanks!

Re: Block xz file extensions

Posted: 31 Aug 2019, 03:09
by Sergio
Hi.
After you save the file /usr/mailscanner/etc/filename.rules.conf you should restart MailScanner.

I have the following rules on the same file and are working without any issues:

Code: Select all

# My own blocked file extensions
deny	\.arj$		Possible virus hidden in a attachment						ARJ files are often used to hide viruses
deny	\.jar$		Possible virus hidden in a attachment						JAR files are often used to hide viruses
deny	\.ace$		Possible virus hidden in a attachment						ACE files are often used to hide viruses
deny	\.gz$		Possible virus hidden in a attachment						GZ files are often used to hide viruses
Sergio