What is an SMTP relay?

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

An SMTP relay is a server that accepts email from you and passes it along to its destination. Think of it as the transport layer. You hand it a message, it handles the routing, the retries if something fails, and the final handoff to the recipient's mail server.

SMTP relays don't store your contacts or design your templates or track who opened what. They just move mail. That's why developers and SaaS apps use them for transactional email (password resets, receipts, shipping notifications). You send the message via API or SMTP, the relay delivers it, done.

The term "relay" comes from how SMTP actually works. Your message might pass through multiple servers before it reaches the inbox. Server A accepts from you, relays to Server B, which relays to the recipient's mail server. Each hop is a relay. When people say "SMTP relay service," they usually mean a company that runs those servers for you so you don't have to manage your own mail infrastructure.

SMTP relays differ from full ESPs in a few ways. An ESP like Mailchimp or Brevo gives you templates, list management, segmentation, and campaign analytics. An SMTP relay like Postmark, SendGrid, or Mailgun is just the delivery engine. You build the email yourself (in code or via their API), send it, and they handle transport.

That separation matters for stream separation. Marketing email and transactional email have different engagement patterns. Marketing gets complaints and unsubscribes. Transactional doesn't (usually). Mixing them on the same sending infrastructure can hurt your transactional delivery when a marketing campaign triggers spam complaints. That's why many companies send marketing through an ESP and transactional through a dedicated SMTP relay.

Common relay providers handle authentication for you. When you set up Postmark or SendGrid, they'll give you DNS records to add (SPF, DKIM, DMARC). Once those are in place, your transactional email is authenticated and the relay manages reputation on your behalf. Some relays let you use a dedicated IP if your volume justifies it. Others use shared IP pools and reputation scoring to keep deliverability high across all their customers.

Still if you're building an app or website that sends email, you need an SMTP relay unless you want to run your own mail servers (you don't). If you're sending newsletters or marketing campaigns, you need a full ESP. And if you're doing both, keep them separate.

Not sure which relay fits your setup? Our SOS hotline is free and we'll walk through what actually matters for your use case.

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

Get setup advice for your relay

I read this on the Email Almanac about SMTP relays: "An SMTP relay is a server that accepts email from you and passes it along to its destination. Relays handle transport, retries, and routing. They don't store contacts or track opens. Developers use relays like Postmark, SendGrid, or Mailgun for transactional email. Marketing email goes through full ESPs like Mailchimp or Brevo. The distinction matters for stream separation: mixing marketing and transactional on the same infrastructure can hurt transactional delivery when marketing campaigns trigger complaints." Help me figure out what this means for MY setup. I need: 1. Whether I need an SMTP relay, a full ESP, or both 2. How to set up authentication (SPF, DKIM, DMARC) for a relay 3. Whether I should use a shared IP pool or dedicated IP 4. How to check if my current relay setup is working correctly My details (the more you share, the better the advice): - Current email platform: e.g. SendGrid, Postmark, Mailchimp, custom SMTP, none yet - What I'm sending: [transactional (receipts, password resets), marketing (newsletters, campaigns), or both] - Sending volume: e.g. 1,000/month, 10,000/day - Technical comfort: beginner / intermediate / advanced - Domain: your sending domain - Current challenge: what prompted this question

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