Stop Open Relay of Exim

Telnet to yourmailserver at port 25 and issue all the following commands:


telnet hostname/ip 25


mail from:

rcpt to:

If you are getting the error “554 : Relay access denied” then the server is not an open Relay

If not Just pass the command “DATA” sfter the recipient and then enter the message ending with a period ie : “.”

If you get the reply “SUCCESS Relay Accepted – final response code 550″

Then as you feared your server is subjected to open relay and if not enjoy………. It is not

I hope your server is not open relay supporting, but if it is so, as it is a Cpanel Server you can stop it normally using the below scripts



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

service exim restart




Posted in Cpanel, Issues, Mail
3 comments on “Stop Open Relay of Exim
  1. Math says:

    Thanks for the article. It was very informative.


  2. peter says:

    I tried this but my server still works as open relay, when i run antirelayd i see:

    tailwatchd is running.

    restarted exim and still can send emails telneting port 25 from anywhere


  3. marcin says:

    true.. this script is NOT fixing this problem


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 128,392 hits

Get every new post delivered to your Inbox.

Join 211 other followers

%d bloggers like this: