What is an open relay?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

An open relay is a mail server that accepts and forwards email from anyone to anyone, without checking whether the sender is authorized to use it. In the early days of email, this was how most servers worked. Today, it's a security disaster.

Why? Because spammers search the internet for open relays, then use them to blast millions of spam emails. The spam appears to come from your server's IP address, not theirs. Your server gets blocklisted, your legitimate emails stop delivering, and you're cleaning up someone else's mess.

Modern mail servers require authentication before they'll relay mail. That's SMTP AUTH (you log in with a username and password), or they only relay for specific IP addresses (like your company's network). If you're using an ESP like Mailchimp or Postmark, you don't need to worry about this. They handle authentication for you.

Open relays are mostly a problem if you're running your own mail server. If you manage a server running Postfix, Exim, or Sendmail, you need to verify it's not an open relay. Test it by trying to send email through your server from an external network (not your office) without logging in. If it sends, you have an open relay. Fix it by requiring SMTP authentication for all relay attempts.

And If you're not sure whether your server is configured correctly, MXToolbox's SMTP diagnostics can test it for you. Or just ask us (seriously, we'll check it for free).

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Not sure if your server is an open relay?

I read this on the Email Almanac about open relays: "An open relay is a mail server that accepts and forwards email from anyone to anyone, without checking whether the sender is authorized to use it. Spammers search for open relays and use them to send spam, which gets your server blocklisted." Help me figure out if this applies to my setup: 1. Do I need to worry about this? (Or does my ESP handle it?) 2. If I run my own server, how do I test if it's an open relay? 3. What's the correct configuration to prevent this? 4. If I'm already blocklisted because of an open relay, how do I recover? --- My setup: - Email platform: [ESP like Mailchimp/SendGrid, or self-hosted like Postfix/Exim] - Server access: do you manage your own mail server, or does your host/ESP? - Domain: your sending domain - Current issue: bounces, blocklisting, or just checking configuration - Technical comfort: beginner / can follow docs / can edit config files

Edit the yellow boxes, then send to the AI of your choice.