Knowledgebase : WHM/CPanel, Apache

If the size of your eximstats database is getting large ( you can check the DB space usage using du )
  • du -s -h /var/lib/mysql/eximstats
then you can clean the database entries. You may also wish to blank the current exim log files at /var/log/exim*

If you want to clean the eximstats MySQL database, from an SSH prompt type...

  • mysql eximstats
Then from with the MySQL application type...
  • delete from sends;
  • delete from smtp;

If you want to remove the existing log entries, from an SSH prompt type...

  • cd /var/log
  • rm -fr exim*.1
  • rm -fr exim*.2
  • rm -fr exim*.3
  • rm -fr exim*.4
  • rm -fr exim_mainlog ; touch exim_mainlog ; chown mailnull.mail exim_mainlog
  • rm -fr exim_paniclog ; touch exim_paniclog ; chown mailnull.mail exim_paniclog
  • rm -fr exim_rejectlog ; touch exim_rejectlog ; chown mailnull.mail exim_rejectlog
Then restart the exim service ...
  • service exim restart

Source: https://supportdatainc.com

Error from park wrapper: domain.name is already configured.

And

Unable to find out which user owns the parked domain domain.name.

Do this.

grep username /etc/trueuserdomains

If there is entry remove.

cd /var/cpanel/users/
grep -rl parked_domain .

If any files is listing it, remove from that file.

grep parked_domain /usr/local/apache/conf/httpd/conf

If listed remove it. Then add park domain from cpanel.

Source:
http://www.webhostingtalk.com/showthread.php?t=674861
Sometimes you may end up in a situation when a hosted domain email should not be delivered locally, but it is.
Go to /etc/localdomains and remove this domain from the list.
If no matching virtual host is found, then the first listed virtual host that matches the IP address will be used.

http://httpd.apache.org/docs/2.2/vhosts/name-based.html

Sample


RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.fromdomain.com|fromdomain.com)$
RewriteRule ^(.*)$ http://www.targetdomain.com/page.html [R=301,L]
RewriteRule (.*)\.html$ index.php?url=$1
You can find the status of your licenses by visiting

http://verify.cpanel.net/

Instructions for installation can be found at

http://www.cpanel.net/install.html
/etc/remotedomains is used to list domains that have account on your server but send/receive mail through their own mail server. So if you changed MX record for this domain in hosting management software (CPanel or something like), it could move the domain from localdomains to remotedomains.

Check MX for the domain - if it points to your server - make sure that this domain is in /etc/localdomains but not in /etc/remotedomains.

Read more:
http://www.webhostingtalk.com/showthread.php?t=383195
Managed by WebCTO