buy tb-500

Archive for the ‘Linux’ Category

Lowest numbered MX record points to local host

Thursday, April 19th, 2012

The cause for the problem can either be because that the MX DNS record for the domain zone of destination recipient (local host) is wrong, or because (most likely reason anyway) that during the verify sender and recipient condition in RCPT ACL phase, the example.com is not recognized as a local domain, nor is the remote host allowed to relay.

To solve the issue, check whether the domain MX record in DNS name servers to verify that it’s pointing to the correct mail server. If MX record is correct, ensure that the destination domain is properly designated as the local-domain to allow Sendmail or Exim to know that they suppose to receive the mail without querying DNS again. To do so, insert the affected domain to the server’s domain lists into the following config file, depending on your flavor of Linux or Windows OS, and which MTA you’re using.

/etc/localdomains (Exim)
/etc/mail/local-host-names (Sendmail)

Reference

http://www.mydigitallife.info/lowest-number-mx-record-points-to-local-host-rejected-rcpt-error/

Deleting mails from qmail queue

Monday, April 9th, 2012

Following commands can delete all mails from your qmail mail server queue.

qmailctl stop
find /var/qmail/queue/mess -type f -exec rm {} \;
find /var/qmail/queue/info -type f -exec rm {} \;
find /var/qmail/queue/local -type f -exec rm {} \;
find /var/qmail/queue/intd -type f -exec rm {} \;
find /var/qmail/queue/todo -type f -exec rm {} \;
find /var/qmail/queue/remote -type f -exec rm {} \;
qmailctl start

Do this when even you get time 🙂

535 Incorrect authentication data + EXIM + cPanel

Monday, April 2nd, 2012

the solution is below
go to /var/cpanel/serviceauth/

remove the directory exim

cd /var/cpanel/serviceauth/
rm -rf exim

Restart Cpanel.
/etc/rc.d/init.d/cpanel restart

The folder exim will be recreated…

that should fix the issue.

Reference
http://presoon.com/blog/2009/03/20/535-incorrect-authentication-data-exim-cpanel/

increase max_input_vars more than 1000

Monday, April 2nd, 2012

can not increase , in order to increase it then you need to install Suhosin
Please refer to this article for more details
http://forums.cpanel.net/f402/workaround-cve-2011-4885-php-5-2-17-a-258022.html

How to Install PHP mbstring extension

Sunday, April 1st, 2012

sudo yum install php-mbstring
sudo /sbin/service httpd restart

reference
http://drupal.org/node/125354

How to check the Summary of load average for all domains in WHM server

Wednesday, February 22nd, 2012

use the below command

/usr/local/cpanel/bin/dcpumonview

iftop installation

Wednesday, February 22nd, 2012

the below installation for Linux ( Centos)

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum install iftop

How to Find load causing processes (Load issue)

Wednesday, February 22nd, 2012

ps aux | awk ‘{print $4?\t”$11}’ | sort | uniq -c | awk ‘{print $2? “$1? “$3}’ | sort -nr | head

Out of memory OOM errors

Wednesday, February 22nd, 2012

grep out_of_memory /var/log/messages

Install ntupdate and synchronize the date

Wednesday, February 22nd, 2012

Please refer to below

yum install ntp

chkconfig ntpd on

ntpdate pool.ntp.org

/etc/init.d/ntpd start