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:
====================================================================

Aug 11, 2011

Mysql database size shows 0mb in cpanel: how to solve

Updae Mysql databases through the following command through root

# /usr/local/cpanel/bin/setupdbmap
OR
1) Edit /var/cpanel/cpanel.config

Change:

disk_usage_include_sqldbs=0

to

disk_usage_include_sqldbs=1

Then run the following:

/scripts/update_db_cache

This may take a few minutes if you have a ton of users with databases, but after this, you should see the database disk usage show up accurately in cPanel.

Done...

Aug 8, 2011

essage not sent. Server replied:Requested action aborted: error in processing451 Temporary local problem - please try later

How to fixed above error: (Exim)

go through exim mainlog:

(i have tried to fix from cpanel using fix mailbox or the other way its still same. can someone give me information why this happen)

Try editing your /etc/localdomains to your liking. In mine, I included every actual and parked domain on the server, as well as the hostname for the server.

Then try removing the file /etc/remotedomains:

# rm /etc/remotedomains

Then put an empty remotedomains back:

# touch /etc/remotedomains


You should now have a good localdomains, and an empty remotedomains.

Try running /scripts/mailperm now... when I did this, it left the localdomains file alone. I'm guessing that the contents of the remotedomains file may have a bearing on the contents of the localdomains file.

Do this at your own risk, though... I don't know what other affects this could have. I just saw in the script that it looked at the remotedomains file. I also noticed there are two options available, neither of which I tried:

# /scripts/mailperm --skiplocaldomains
# /scripts/mailperm --skipserverperm


Everything should be fine now....
FIXED.... :)




How mail is restored from VDS accounts when it's archived

Simply fire few commands in client VDS...

[vds@root/]$ cd /var/spool/mail
[vds@root/]$ ls | grep test
test
test.20114506.gz
[vds@root/]$ zcat mkelly.20110806.gz >> test

OR

(root)>su - tune.com
[vds@tune.com /]$ cd /var/spool/mail
[vds@tune.com mail]$ ll | grep andy
-rw-rw---- 1 tune.com vuser 0 june 11:34 andy
-rw-rw---- 1 tune.com vuser 45782 Aug 27 12:25 andy.20110827.gz
[vds@tune.com mail]$ zcat andy.45784864.gz >> andy


Done..

Aug 7, 2011

Horde mail - qmail returned error code 100

There was an error sending your message: sendmail returned error code 111

ARUN Post in PLESK BACKEND, PLESK FRONTEND, QMAIL
0

While trying to send mails using QMAIL and PLESK I am getting the error below :

There was an error sending your message: sendmail returned error code 111

Solution :

If any error try stopping QMAIL.

cd /var/qmail/bin

cp -p qmail-local.moved qmail-local cp -p qmail-remote.moved qmail-remote cp -p qmail-queue.moved qmail-queue
killall qmail-remote qmail-queue qmail-local
ls -la qmail-queue qmail-local qmail-remote -r-xr-xr-x 1 root qmail 44060 Jun 13 2006 qmail-local -r-s--x--x 1 qmailq qmail 15784 Jan 26 14:06 qmail-queue -r-xr-xr-x 1 root qmail 43364 Jun 13 2006 qmail-remote

Start qmail..

Fixed...