Remove mailq

April 19, 2008 – 2:32 pm
login as root (ssh) cd /var/spool/exim/input for file in * do rm -fv $file done

[an error occurred while processing this directive]

April 19, 2008 – 1:52 pm
After logging into cPanel for all users, all skins, the following error appears directly under the "Please update your contact information here" line: [an error occurred while processing this directive]   make sure /etc/wwwacct.conf is chmod 644

Install and configure cPanel

April 19, 2008 – 10:51 am
1. You must complete a server installation of one of the supported operating systems listed on cpanel.net main page. (Install suplimentary wget and lynx)   2. You must have a server with the following minimum specifications:   At least a Pentium 3 500 MHz processor At least a 10 GB hard drive At least 256 MB of RAM   3. The following partitions are recommended prior to installing cPanel: 001 GB / 050 MB /boot (No seperate /boot for FreeBSD) 001 GB /tmp 010 GB /usr 007 GB /var 001 GB swap (swap should be 2x RAM) Remaining space to /home   Note: The above partitioning scheme is assuming a 40 GB hard drive. If you have a larger hard drive, you should increment /usr & /var accordingly.   If you do not have a partitioning scheme similar to the above, it is recommended that you format & repartition your machine as you may run into operational issues in the future.   mkdir /home/cpins cd /home/cpins wget http://layer1.cpanel.net/latest sh latest   At this point the ...

Block emails from a specific domain

April 19, 2008 – 10:49 am
To block all emails sent from a specific domain: -go to WHM/Service Configuration/Exim Configuration Editor and switch to Advanced mode -at begin acl form put:   if $header_from: contains "@domain_name.com" then fail text "What message do you want." seen finish endif

Email and website on different servers

April 19, 2008 – 10:44 am
When a client want to get email from other server you need to change MX (change from WHM/Edit a DNS Zone not from cPanel) 1. In DNS Zone do that: domain.com. 14400 IN MX 0 any.domain.com. 2. Add new entry any.domain.com. 14400 IN A 123.123.123.123 Change last figure of Serial Number and click Save. Restart Bind 3. Make a ssh connection and remove the domain name from /etc/localdomains Add the domain name in /etc/remotedomains Restart Exim You need to wait aprox. 4 hours to work   If the domain name are pointed to Email server and from there are redirected the www do that: 1. Remove the DNS Zone from WHM 2. Make a ssh connection and remove the domain name from /etc/localdomains Add the domain name in /etc/remotedomains Restart Exim