HostwareSupport-Linux Hosting technical support for cPanel, Plesk, Directadmin servers

Linux Hosting technical support for cPanel, Plesk, Directadmin and No control panel servers offers and listing
http://hostwaresupport.com/

Aug 20, 2011

How to : Avoid Dr.Web update notifications

Avoid Dr.Web update notifications
In latest plesk version (plesk 9.5) following notifications generated from plesk and send to plesk administrator
which irritate sometimes. You can stop such notifications by applying following fix on server.


Error:

Sample of email headers and notification.
Quote:
Return-Path:
Received: (qmail 28144 invoked by uid 111); 28 Apr 2010 12:36:06 +0000
Date: 28 Apr 2010 12:36:06 +0000
Message-ID: <20100428123606.27994.qmail[@]vps.tunevps.com>
From: root[@]vps.tunevps.com (Cron Daemon)
To: drweb[@]vps.tunevps.com
Subject: Cron /opt/drweb/update.pl
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:

Dr.Web (R) update details:
Update server: http://update.us.drweb.com/unix/500
Update has begun at Wed Apr 28 12:36:02 2010 Update has finished at Wed Apr 28 12:36:05 2010

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


Generally these notifications generate by cron deamon, provide output of command which updates Dr.Web antivirus databases. The command is executed by user 'drweb' from configuration file /etc/cron.d/drweb-update:
Quote:
*/30 * * * * drweb /opt/drweb/update.pl
In older version of plesk such notifications were not sent as drweb' mail alias did not exist and these messages were discarded.
But in latest plesk version like 9.5.1 mail alias 'drweb' refers to mail address of plesk control panel administrator. So emails send to 'drweb@$HOSTNAME' receive to mail address of plesk control panel administrator

You can avoid such emails by doing little changes in cron.

Please open file /etc/cron.d/drweb-update using any suitable editor like vi, nano etc. and add '>/dev/null 2>&1' at the end of the line:
Quote:
*/30 * * * * drweb /opt/drweb/update.pl >/dev/null 2>&1
In this case no email will be generated.

Superb:
====================================================================

No comments:

Post a Comment