Archive for the ‘Exim’ Category

Remove mailq

Saturday, April 19th, 2008

login as root (ssh) cd /var/spool/exim/input for file in * do rm -fv $file done

Block emails from a specific domain

Saturday, April 19th, 2008

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

Saturday, April 19th, 2008

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 ...