Block xz file extensions

Discuss the ConfigServer MailScanner Front-End script
2 posts Page 1 of 1
spamkiller
Junior Member
Posts: 2
Joined: 04 Mar 2019, 11:46


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!
Sergio
Junior Member
Posts: 1380
Joined: 12 Dec 2006, 14:56


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
2 posts Page 1 of 1