How to switch off emails from Anacron in Plesk Onyx

In 2011 I wrote an article about how to avoid emails from Dr. Web. In it I was discussing how to switch off these notifications, which are generated when the Dr. Web service updates itself.

Here’s an example:

/etc/cron.daily/drweb-update:

Dr.Web update details:
Update server: http://update.msk5.drweb.com/plesk/700/unix
Update has begun at Fri May 18 03:53:47 2018
Update has finished at Fri May 18 03:53:54 2018

Following files have been updated:
 /var/drweb/bases/drwdaily.vdb
 /var/drweb/bases/drwtoday.vdb
 /var/drweb/bases/dwmtoday.vdb
 /var/drweb/bases/dwntoday.vdb
 /var/drweb/bases/dwrtoday.vdb
 /var/drweb/bases/timestamp
 /var/drweb/updates/timestamp

Sadly, as of 2018, there is still no way to switch these emails off via a tick box from inside Plesk. It was relatively simple though to redirect the output to /dev/null in Linux, thereby avoiding yet another email in our already overflowing inbox.

In the latest version of Plesk, the earlier approach is no longer working.

Instead, we can tweak the Dr. Web configuration file at /etc/drweb/drweb32.ini. In the Updater section, find the following block of code:

# CronSummary = {Boolean}
# Enables output of update session log to stdout.
CronSummary = yes

Now change the CronSummary value to no and restart the Dr. Web service. On CentOS it’s called drwebd:

systemctl restart drwebd

This will ask Dr. Web to not send us an email when he updates himself. The great thing about this solution is that we can still get command line output if we want to run the service manually.

However, if the service is updated in the future, those emails may re-appear because it’s likely that our configuration file may be overwritten. Only time will tell I guess!





You can leave a comment on my original post.