Wednesday, March 5, 2008

cPanel/WHM > How to authorize a remote IP to relay throught Exim

Create a file with your host IP or IPs and named it something like

/etc/privaterelay

Insert the IPs you'd like to give relaying priveleges to:

192.168.0.2
192.168.3.4

Next, located the following entry at the top of the /etc/exim.conf file:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost

and change it to this:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost : lsearch;/etc/privaterelay

That should do it!

No comments: