Page 1 of 1

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

Posted: 04 Jul 2017 10:18
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

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

Posted: 06 Jul 2017 21:08
by shawniverson
Try this (tab delimited)

Code: Select all

deny   .*      -       -

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

Posted: 07 Jul 2017 07:00
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.

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

Posted: 09 Jul 2017 21:53
by shawniverson
I'm not 100% sure, will have to look at the code again, but I think deny overrides allow in MailScanner