Block all Files except the ones allowed in filename.rules.conf

General eFa discussion
Post Reply
mschmitz
Posts: 2
Joined: 04 Jul 2017 10:13

Block all Files except the ones allowed in filename.rules.conf

Post by mschmitz »

Hi,

I got a problem with Filename blocking.
I want to block all attachments execpt the filename allowed in the Mailscanner filename.rules.conf.
For example .pdf is allowed in the condif file. But .ps1 should be blocked even if not in the config file.
I tried to deny \.*$ and .*$ so far, but this didnt worked.
Anyone knows how to do this?

Thanks and regards

Markus
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Block all Files except the ones allowed in filename.rules.conf

Post by shawniverson »

Try this (tab delimited)

Code: Select all

deny   .*      -       -
mschmitz
Posts: 2
Joined: 04 Jul 2017 10:13

Re: Block all Files except the ones allowed in filename.rules.conf

Post by mschmitz »

Thanks for your help.

Yes this blocks all attachments.
But even the text inside the mail is blocked, also all allowed attachments are blocked.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Block all Files except the ones allowed in filename.rules.conf

Post by shawniverson »

I'm not 100% sure, will have to look at the code again, but I think deny overrides allow in MailScanner
Post Reply