How does an email travel from one server to another?

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

You press send, and your email vanishes from your screen. Where does it go? It doesn't teleport directly to the recipient's inbox. Instead, it takes a journey through multiple servers, each one checking credentials and deciding whether to pass it along.

Here's what actually happens, step by step:

Your email client hands off the message to your outgoing mail server. This is called an SMTP server (SMTP stands for Simple Mail Transfer Protocol, though there's nothing simple about what happens next). If you're using Gmail, Outlook, or an ESP like Mailchimp, their servers handle this part for you.

The sending server looks up where to deliver the message. It queries DNS (the internet's address book) for something called an MX record. That's a Mail Exchange record, which tells the sending server which mail server accepts mail for the recipient's domain. If you're emailing captain@deepcurrent.io, the sending server asks DNS, "Who handles mail for deepcurrent.io?" DNS responds with an IP address.

The two servers connect and negotiate. Your sending server reaches out to the recipient's server over TCP (the internet's handshake protocol) and says, "I have a message for captain@deepcurrent.io." The receiving server might accept it immediately, or it might ask for proof that you're allowed to send from your domain. That's where SPF, DKIM, and DMARC come in.

The receiving server makes a decision. It can accept the message (it goes into the recipient's mailbox), defer it ("try again later"), or reject it outright. This decision depends on spam filters, authentication checks, sender reputation, and the receiving server's own policies. Every step of this conversation gets logged, which is why you can track delivery and troubleshoot when things go wrong.

The message sits on the receiving server until the recipient retrieves it. Once accepted, the email doesn't move again until the recipient opens their email client. At that point, protocols like IMAP or POP3 pull the message from the server to their device. SMTP pushes mail from server to server. IMAP and POP3 pull it from server to client.

The whole process happens in seconds (usually), but it's not a straight line. Emails often pass through multiple intermediate servers (relays) before reaching the final destination. Each relay repeats the same authentication and filtering checks. That's why a message can succeed at one hop and fail at another.

But if you want to see this process in action, check the email headers of any message you receive. Every server that touched the message leaves a timestamp and a note. It's the email's travel log.

Want to understand what happens after the recipient retrieves the message? Read about SMTP, POP, and IMAP next.

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 custom troubleshooting for your email delivery

I read this on the Email Almanac about how email travels between servers: "Your email doesn't teleport. It passes through multiple servers. The sending server queries DNS for the recipient's MX record, connects to the receiving server via TCP, and delivers using SMTP. The receiving server checks authentication (SPF, DKIM, DMARC), then accepts, defers, or rejects the message. Every step is logged, which is why you can troubleshoot delivery." Give me step-by-step help for MY specific situation: 1. What's happening with my setup (adapted to my tools and domain) 2. Common problems and how to spot them 3. How to verify delivery is working 4. What to do if messages get stuck or rejected --- My details (the more you share, the better the advice): - Email platform/ESP: e.g. Mailchimp, SendGrid, Postmark, HubSpot, custom SMTP - Sending domain(s): your domain(s) - Sending volume: e.g. 5,000/month or 500/day - Experience level: beginner / intermediate / advanced - What I'm sending: newsletter, transactional, product notifications - Current challenge: describe what prompted this question

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