Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: Aby on December 30, 2013, 02:03:40 am

Title: How can I block certain domains from relaying via exim?
Post by: Aby on December 30, 2013, 02:03:40 am
How can I block certain domains from relaying via exim?

To disallow certain local domains from relaying through your server, you will want to

1)ssh into the server and create the file /etc/norelay. In that file, you may can put a list of domains that you do not wish to relay through. This should be one domain per line without any spaces. After that,

2)Log into WHM, click on the Exim Configuration Editor, and then select the advanced configuration button. In the  first check box, put the following;

3)domainlist relay_domains = !lsearch;/etc/norelay : lsearch;/etc/localdomains : \
  lsearch;/etc/secondarymx

4)Click on save

===