Free Open Relay Checker

Please wait, we are testing the mail server…
The mail server is responding slowly
Many mail servers deliberately delay new senders to slow down spammers, so this test can take up to a minute. You may have to wait a little longer.
Your IP:

Full conversation with the mail server


                    

Enter a domain or the address of a mail server. We connect to its mail port and check if it would pass on mail from a stranger to an outside address. No email is sent during the test.

Free Open Relay Checker Overview

What is an open relay?

A mail server normally has two jobs. It accepts mail for its own domains, and it sends mail for its own users after they log in. An open relay also accepts mail from anyone on the internet and forwards it to any other domain, without asking who is sending. Years ago many servers worked like this. Today it is treated as a serious security hole.

Why does this test matter?

Spammers scan the internet all the time looking for open relays. When they find one, they push thousands of messages through it, and every message carries your server's IP address instead of theirs. Soon that address appears on block lists such as Spamhaus. Gmail, Outlook and other providers then reject or hide your normal mail, so invoices, replies and password resets stop reaching people. The extra load can also slow the server down, and some hosting companies suspend accounts that send spam. A quick test shows the problem before spammers find it.

How does this checker test a server?

We look up the mail server (MX record) of the domain you enter, connect to it on port 25 and hold a short conversation, the same way another mail server would:

  1. We wait for the server to greet us.
  2. We say hello with EHLO and read the list of features it offers.
  3. We give an outside sender, relaytest@dnsinfo.live.
  4. We ask it to take a message for an outside recipient, relaytest@gsldns.net. Neither address belongs to the domain you are testing.
  5. We cancel with RSET and leave with QUIT.

We never send the DATA command, so no message is delivered at any point. The report shows every line of the conversation together with a plain explanation of each step.

What do the results mean?

  • Green, not an open relay: the server refused the outside recipient, usually with a code such as 550 or 554 and a message like "Relay access denied". This is the answer you want.
  • Red, open relay: the server accepted the outside recipient with a 250 code. Close it as soon as possible.
  • Orange, inconclusive: the server refused our test sender, asked us to try later with a 4xx code (often greylisting) or did not finish the conversation in time. The report says exactly where it stopped. Run the test again in a few minutes.

The report also points out other weak spots visible from outside: missing reverse DNS, no encryption (STARTTLS), password login offered before encryption, the VRFY and EXPN commands that reveal valid addresses, and a greeting that shows the mail software version.

When should I run this test?

Run it after setting up a new mail server, after changing relay or firewall settings, after moving to a new host, and whenever your IP address lands on a block list for no clear reason.

Open Relay Troubleshooting and Practical Fixes

Postfix forwards mail for strangers when its relay rules are too loose or mynetworks covers too many addresses.

How to fix: In main.cf set smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination. Keep mynetworks to 127.0.0.0/8 and the few servers you trust, then reload Postfix and test again.

Exim relays for any address listed in its relay host lists, so one wrong entry is enough to open it.

How to fix: Keep relay_from_hosts limited to 127.0.0.1 and trusted servers. On cPanel servers, remove unknown entries from /etc/relayhosts and /etc/trustedmailhosts and review the Exim Configuration Manager in WHM, then restart Exim.

A receive connector that faces the internet gives anonymous users permission to send to any recipient.

How to fix: Remove the ms-Exch-SMTP-Accept-Any-Recipient permission for anonymous users on internet facing connectors. If a device inside your network must relay, create a separate connector that accepts only that device's IP address.

Admins often open relaying for a whole network range so that one device can send, and that range is too wide.

How to fix: Allow only the single IP address of that device, or set it to log in with a username and password on port 587 so no open relay rule is needed.

The server postponed the test or refused our sender, so the check could not finish. Greylisting servers do this on purpose for unknown senders.

How to fix: Wait a few minutes and run the test again. If it stays orange, check the server logs for the reason it refused the test sender.

FAQs

An open relay is a mail server that accepts mail from anyone on the internet and passes it on to any other domain, without asking who is sending. Spammers look for these servers so they can send large amounts of spam that seems to come from your IP address instead of theirs.

Once spammers find it, your server's IP address soon lands on block lists such as Spamhaus and Barracuda. Gmail, Outlook and Yahoo then reject or hide your normal mail too, including invoices, replies and password resets.

We find the mail server for your domain (its MX record) and connect to it on port 25. We say hello with EHLO, give an outside sender (relaytest@dnsinfo.live) and ask the server to take mail for an outside address (relaytest@gsldns.net). A safe server refuses with a code such as 550 or 554. We then end the conversation with RSET and QUIT. We never send the DATA command, so no email is sent.

Many mail servers make unknown senders wait on purpose, sometimes 20 seconds or more at a step, to slow down spammers. Others use greylisting and ask new senders to try again later with a 4xx code. We give the server up to a minute. If it still does not finish, the report tells you exactly where it stopped and what it said. Run the test again after a few minutes.

In Postfix, set smtpd_relay_restrictions to permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination and keep mynetworks to addresses you trust. In Exim, keep relay_from_hosts to localhost and your own servers. In Microsoft Exchange, remove the ms-Exch-SMTP-Accept-Any-Recipient permission for anonymous users on connectors that face the internet.

Yes. It is free and you do not need an account. To keep it fair, there is an hourly limit on tests from one visitor and on tests against one mail server.