stuff to buy!!

Tuesday, January 20, 2009

How to: Linux WHM/cPanel Enable Open Relay SMTP Exim

I had this question asked about enabling relaying through a server.

Basically it's not a good thing to enable relaying on your SMTP servers because it is very bad for your and very good for spammers.

I don't think I need to say more on that and the type of headaches you will get from it.

However someone wanted to allow certain IPs/Hosts to relay through their servers and here is what I found.

Link
==
http://faq.cpanel.net/show.cgi?qa=105638198305995
==

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

/etc/privaterelay

i.e

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:

Buy more Stuff!!!