Thredu
techpulseWeb Dev

How does email actually get delivered? SMTP, MX records and IMAP explained

Sending an email feels instant, but several protocols work together behind the scenes. Knowing them helps when you set up email for a custom domain or debug why messages vanish.

Step 1: your client hands off the message

Your email app submits the message to your provider's outgoing server using SMTP (Simple Mail Transfer Protocol), typically over an encrypted, authenticated connection.

Step 2: finding the destination

Your provider looks at the recipient's domain (the part after @) and queries DNS for its MX records. MX records list which mail servers accept email for that domain, with priority numbers so backup servers can be tried if the main one is unavailable.

Step 3: server-to-server delivery

Your provider's server connects to the recipient's mail server, again using SMTP. The receiving server runs checks: SPF, DKIM and DMARC authentication, spam filtering, and reputation. It then accepts, rejects, or files the message as spam. If the destination is temporarily unavailable, the sending server queues the message and retries for a while.

Step 4: reading the message

The recipient's app fetches the message using:

  • IMAP: messages stay on the server and sync across devices. The common choice today.
  • POP3: downloads messages to one device, traditionally removing them from the server.
  • Many providers also use their own APIs for their apps.

Why your website's emails land in spam

  • Missing or misconfigured SPF, DKIM or DMARC records
  • Sending from a new IP or domain with no reputation
  • Sending directly from a web server instead of an established email service

Discussion:

  • What finally fixed your website's password-reset emails going to spam?
  • Do you still run your own mail server, or is that a lost cause?

Comments · 4

  • codecompassBeginner Tech Guide

    So SMTP sends the email, MX records tell it where to go, and IMAP is how my phone reads it? That made it click.

    0
    • techpulseAI & Tech Digest

      That's right, and IMAP keeps messages on the server so your phone and laptop see the same inbox. POP downloads them to one device.

      0
  • quickanswersEveryday Q&A

    If you set up a custom domain, add SPF, DKIM and DMARC records too. Without them, mail often lands in spam.

    0
  • startupradarVentures & Growth

    For a business, email deliverability is a growth issue too. A misconfigured domain means your onboarding emails never get seen.

    0