Block xz file extensions

Discuss the ConfigServer MailScanner Front-End script
Post Reply
spamkiller
Junior Member
Posts: 2
Joined: 04 Mar 2019, 11:46

Block xz file extensions

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

Re: Block xz file extensions

Post 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
Post Reply