Unable to block old doc files

Bugs in eFa 4
Post Reply
ItemsGmbH
Posts: 13
Joined: 20 Dec 2018 14:53

Unable to block old doc files

Post by ItemsGmbH » 06 Nov 2019 15:41

Hi there

on my older eFa installation i used to block old .doc files
i edit /etc/MailScanner/filename.rules.conf by adding

Code: Select all

# Deny old .doc files
deny    \.doc$          Old .doc file   -
This dont block my test with an attached .doc file

I wanted to restart the MailScanner service, but

Code: Select all

[root@mailin3 MailScanner]# service MailScanner restart
Redirecting to /bin/systemctl restart MailScanner.service
Failed to restart MailScanner.service: Unit not found.
What is wrong? :lol:

kommunen
Posts: 9
Joined: 25 Apr 2014 09:47

Re: Unable to block old doc files

Post by kommunen » 07 Nov 2019 10:53

The systemd service is called mailscanner.service

So you have to run 'service mailscanner restart' or the more properly correct 'systemctl restart mailscanner'

ItemsGmbH
Posts: 13
Joined: 20 Dec 2018 14:53

Re: Unable to block old doc files

Post by ItemsGmbH » 07 Nov 2019 11:14

Thanks for that
Even after a restart the mailscanner won´t block .doc files
Any ideas?

kommunen
Posts: 9
Joined: 25 Apr 2014 09:47

Re: Unable to block old doc files

Post by kommunen » 07 Nov 2019 12:25

Make sure the rule blocks are separated by tabs and not spaces.
Your rule should be

Code: Select all

deny<tab>\.doc$<tab>Old .doc file<tab>- 
That worked for me, at lease.

ItemsGmbH
Posts: 13
Joined: 20 Dec 2018 14:53

Re: Unable to block old doc files

Post by ItemsGmbH » 07 Nov 2019 12:38

Oh my... very embarrassing :lol:
Thanks! This was exactly the problem :oops:


kommunen wrote:
07 Nov 2019 12:25
Make sure the rule blocks are separated by tabs and not spaces.
Your rule should be

Code: Select all

deny<tab>\.doc$<tab>Old .doc file<tab>- 
That worked for me, at lease.

Post Reply