SMTP Explained: How Email Finds Its Way Across the Internet

SMTP explained in plain terms means the set of rules that mail servers use to hand email to each other across the internet. The central question is how a message typed on one side of the world arrives in an inbox on the other, and the short answer is that your mail server passes it along a chain of servers, each speaking SMTP, until it reaches the server that holds the recipient’s mailbox.

SMTP stands for Simple Mail Transfer Protocol, and it has carried email since the early 1980s. It is old, plain, and still in charge of nearly every message you send, because every mail provider on earth agrees to speak it. Your email app never delivers a message directly to its reader; it hands the message to a server, and SMTP does the rest.

Understanding SMTP matters more than it first appears. It explains why email sometimes takes minutes to arrive, why some messages land in spam, and why a mistyped address produces a bounce instead of silence. The protocol is simple by design, and that simplicity is both its strength and its weakness.

Key takeaways

  • SMTP is the protocol mail servers use to send email to each other across the internet.
  • Your email app hands a message to your provider’s outgoing server, which relays it towards the recipient.
  • The recipient’s server is found by looking up mail exchange records for their domain.
  • SMTP on its own does not verify the sender, so SPF, DKIM, and DMARC were added to fight forgery.
  • SMTP only sends mail; reading mail is the job of IMAP or POP3.

What SMTP is

SMTP is an application-layer protocol, which means it deals in messages rather than wires, defining how one mail server introduces itself to another, offers a message, and confirms delivery. It was first standardised in 1982, in the early days of the internet, when the network was small and everyone on it trusted each other.

The protocol works as a short conversation in plain text. One server greets the other, states who the message is from and who it is for, then sends the message itself: headers, subject, and body. The receiving server replies at each step, accepting the message or refusing it with a code that explains why.

SMTP is deliberately a sending protocol only. It moves a message from a sender towards a recipient, and then its job is done. It does not store mail for reading, organise folders, or mark messages as read, since those jobs belong to other protocols, which is why your email app uses SMTP to send and a different protocol to fetch.

How an email travels

It starts when you press send. Your email app does not contact the recipient directly; it connects to your provider’s outgoing mail server, usually on port 587, and hands over the message. That server is called a mail submission agent, and its first job is to check that you are who you claim to be, using your login.

Next, your provider’s server must find where the recipient’s mail lives. It takes the domain from the recipient’s address, the part after the at sign, and asks the domain name system for that domain’s mail exchange records, which list the servers that accept mail for it. Our guide to DNS explains how this lookup system turns names into addresses, and it is the step that decides which server your message is sent to.

Your server then connects to the recipient’s server and speaks SMTP. It introduces itself, names the sender and the recipient, and transfers the message, which the recipient’s server may accept, reject because the address does not exist, or refuse temporarily because it is busy. If the recipient’s server is unreachable, your provider will keep trying for hours or even days before giving up and sending you a bounce message.

Once accepted, the message is stored in the recipient’s mailbox on their provider’s server. It waits there until the recipient’s email app fetches it, using IMAP or POP3, and displays it in the inbox. The whole journey often takes seconds, yet it can involve several servers, each making its own decision about whether the message is welcome.

A laptop and a phone on a dark desk at night displaying a glowing green network map on their screens
An email rarely travels directly: it hops from your provider’s server to the recipient’s server, guided by the internet’s address system.

SMTP, IMAP, and POP3 compared

Protocol Job Direction Common ports
SMTP Sends mail between servers Outward, towards the recipient 25, 587, 465
IMAP Reads mail kept on the server Inward, from server to your app 993, 143
POP3 Downloads mail to one device Inward, then usually deleted 995, 110
SMTP submission Accepts mail from your app From you to your provider 587, 465
SMTP relay Passes mail between providers Server to server 25

Spam, authentication, and trust

SMTP was written for a trusting world, and it shows. The protocol lets a sender claim any from address, with no proof required, which is why forged email became one of the internet’s oldest problems. Spammers and scammers exploited that gap for decades, sending messages that appeared to come from banks, colleagues, and delivery firms.

Three systems now shore up that weakness, starting with SPF, which publishes a list of the servers allowed to send mail for a domain, so a receiving server can reject messages from anywhere else. DKIM adds a cryptographic signature to each message, proving it was sent by the domain’s own servers and has not been altered. DMARC ties the two together and tells receivers what to do with messages that fail the checks.

Encryption protects the journey as well, since modern SMTP uses TLS to scramble the conversation between servers, so the message cannot be read by anyone watching the traffic. Our guide to SSL certificates explains the certificates that make that encryption trustworthy, and why your browser and your mail server both rely on them. Even with encryption, though, the message is readable by every server that handles it, which is why email is best treated as a postcard rather than a sealed letter.

Spam filtering is the final line of defence. Receiving servers score each incoming message on its content, its sender’s reputation, and whether it passes the authentication checks. Messages that look suspicious are rejected outright or filed into the spam folder, which is why a legitimate message can occasionally be delayed or filtered: the same checks that block spam sometimes catch real mail by mistake.

SMTP checklist

  • Send mail through your provider’s submission server on port 587, with a login, never through an open relay.
  • Publish SPF records listing every server allowed to send mail for your domain.
  • Sign outgoing mail with DKIM so receivers can verify it came from you.
  • Publish a DMARC policy telling receivers to reject mail that fails authentication.
  • Use TLS for every SMTP connection, so messages travel encrypted between servers.
  • Set up a proper bounce address and read the bounces, since they report delivery problems.
  • Keep your sending reputation clean by never buying lists or mailing people who did not ask.
  • Test a new mail setup by sending to several providers, and check the spam folder.
  • Watch for delivery delays, since a sudden slowdown often means a reputation or blocklist problem.

Frequently asked questions

What does SMTP stand for?

SMTP stands for Simple Mail Transfer Protocol. It is the standard that mail servers use to send email to each other, and it has carried internet mail since it was first standardised in 1982.

What is an SMTP server?

An SMTP server is a mail server that accepts outgoing email and delivers it towards its destination. Your email provider runs one, and when you press send, your app hands your message to that server, which relays it to the recipient’s provider.

Is SMTP the same as email?

No. SMTP is only the delivery mechanism, the rules for moving a message between servers. Email as a whole also needs a way to store mail and a way for you to read it, which is the job of IMAP or POP3, plus your email app.

Why does email sometimes take a long time to arrive?

The recipient’s server may be busy, your provider may be retrying after a failed connection, or the message may be held for spam checks. Greylisting, where a server temporarily rejects an unfamiliar sender and waits for a retry, can also add several minutes to delivery.

What port does SMTP use?

Port 587 is the standard for submitting mail from your app to your provider, with a login and encryption. Port 25 is used for mail moving between providers, and port 465 is an older alternative for encrypted submission that some providers still support.

Can SMTP be used to send spam?

It was abused for spam for years, because the original protocol trusted the sender’s claimed address. Modern defences such as SPF, DKIM, DMARC, and reputation-based filtering now make large-scale forgery much harder, though no system blocks every unwanted message.

The bottom line

SMTP explained in one line is this: a simple, text-based handover in which your mail server passes a message along to the server that holds the recipient’s mailbox.

It is older than the web itself, and it still works because every provider speaks it. Learn its ports, its relay chain, and the authentication systems built around it, and you will understand both how email arrives and why some of it never does.

This article is general information about how SMTP works, not advice about which email setup suits a particular organisation.

Latest articles

Scroll to Top