How to restart MailScanner service in EFA4?

Questions and answers about how to do stuff
Post Reply
kidtriton
Posts: 13
Joined: 24 Mar 2016 14:44

How to restart MailScanner service in EFA4?

Post by kidtriton »

I sometimes modify the blocked attachments list and had these instructions saved for EFA3. I just rebuilt using EFA4 and the sudo service MailScanner restart doesn't work. I modified the filename.rules.conf and then restarted the whole OS and my list works but I'd like to be able to make the changes effective without an entire server restart. What has that command changed to?

SSH in and get into shell

sudo vi /etc/MailScanner/filename.rules.conf

hit i to edit the line below containing the file extension to block

hit esc, then :wq to write and quit

sudo service MailScanner restart
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: How to restart MailScanner service in EFA4?

Post by shawniverson »

Code: Select all

sudo systemctl restart mailscanner
kidtriton
Posts: 13
Joined: 24 Mar 2016 14:44

Re: How to restart MailScanner service in EFA4?

Post by kidtriton »

Great, thanks! I guess its normal not to see a stopping and starting message anymore.
Post Reply