What is a mail relay?

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

A mail relay is an SMTP server that takes an email from one source and hands it off toward its final destination. It's the middle link in the delivery chain. Think of a regional sorting facility for physical mail. Letters come in from thousands of local offices, get organized, then go out toward recipient addresses.

Every ESP operates a fleet of relays. When you send a campaign through Mailchimp, SendGrid, Mailgun, Amazon SES, or Postmark, their relays are what actually talk to Gmail, Outlook, and every other receiving mailbox on your behalf. The relay is doing the SMTP conversation, not you.

And there are two flavors worth knowing. An open relay accepts mail from anyone on the internet. These are a disaster, spammers find them and hammer them, and the IPs end up on every blocklist within hours. Modern infrastructure uses authenticated relays that demand valid credentials before they'll send anything. Every reputable ESP is an authenticated relay with a lot of extra machinery bolted on top (queuing, retries, bounce parsing, warmup logic, event streams).

The reason the relay matters for you, the sender, is that receiving servers judge the relay, not just you. They look at the relay's IP reputation, check whether SPF aligns with the domain in your From header, and verify the DKIM signature the relay stamped on your message. Picking a relay (which is what picking an ESP really means) is picking whose IP reputation you're borrowing. Running your own relay on your own IP is a real option, but you inherit every bit of that reputation work yourself. For most senders under a few million messages a month, a well-run ESP is the right call. If you're curious whether your current relay setup is authenticating cleanly, the SPF checker at Review My Emails takes about ten seconds.

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

Audit your mail relay setup end to end.

I'm trying to figure out whether my current mail relay setup (ESP or self-hosted) is actually serving my deliverability goals. Help me with: 1. Whether my authentication (SPF/DKIM/DMARC) aligns cleanly with the relay I'm using 2. Whether I should stay on a shared ESP relay, move to dedicated IPs, or go self-hosted 3. The specific checks to run right now to catch a misconfigured relay My setup: - ESP / relay: Mailchimp, SendGrid, Postmark, self-hosted Postfix, etc. - Sending domain(s): your domain(s) - Volume: daily or monthly - Shared or dedicated IP: shared / dedicated / how many - Return-path domain: ESP default / custom bounce subdomain - DKIM signing: ESP-managed / your keys / both

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