To close the open relay run:

/etc/rc.d/init.d/antirelayd restart
service exim restart

If that doesn’t work then

edit /etc/exim.conf, you should see in line 61 (or close if somebody
changed the default configuration) the definition of which hosts are
allowed relaying :

hostlist relay_from_hosts =

These values will allow localhost and few ips.
Nothing else. Adjust the values according to the requirement.


hostlist relay_from_hosts =

This will allow only local host to have open relay.

That’s all you need to do to change to avoid open relay.

For checking whether it is open relayed do use any one of the following links :-

Checkout these latest posts:-

Why should hosting companies consider Outsourced Technical Support?

Ideal Traits of a 24/7 Web Hosting Technical Support Services Partner

How DevOps helps enhance Customer Satisfaction

InstaCarma has been consistently offering 24*7*365 support for its partner hosting businesses. Contact Us for more information.


Contact Us On WhatsApp