Network services
SMTP
How mail moves: from a client to its own mail server, then from server to server, found by the domain's MX record.
SMTP moves mail: from a client to its own server, then server to server on TCP 25. The sending
server looks up the recipient domain's MX record and relays the message there. Its commands: EHLO,
MAIL FROM, RCPT TO, DATA. The envelope (MAIL FROM, RCPT TO) steers delivery; the headers (From:, To:) are
what people read; nothing makes them agree. A server that relays for anyone is an open relay.
Read next
- IMAP How a reader gets mail from their own server: it stays on the server, in folders, seen alike from every device.
- DNS records The typed entries of a zone: A for an address, CNAME for an alias, NS for delegation, and more.
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- SPF, DKIM and DMARC Three DNS-published policies that let a receiving mail server check that a message really comes from the domain it claims.
- Phishing A message that impersonates someone a target trusts to make them act — click a link, hand over a login, open a file — before they think.