Stop Open Relay of Exim

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

——————————————————–

telnet hostname/ip 25

helo client.server.com

mail from: xxx@somedomain.com

rcpt to: yyy@somedomain.com

——————————————————–
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

—————————————–

/scripts/fixrelayd

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

service exim restart

—————————————–

About

anees

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

    Thanks for the article. It was very informative.

    Like

  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

    Like

  3. marcin says:

    true.. this script is NOT fixing this problem

    Like

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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
  • 118,367 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers

%d bloggers like this: