Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How can I block certain domains from relaying via exim?  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
How can I block certain domains from relaying via exim?
« 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

===