A Bit about Email maurycyz.com · 11 points · 1 comments · HN thread TL;DR Mauryc...
HN Best 200 @best
A Bit about Email maurycyz.com · 11 points · 1 comments · HN thread
TL;DR Maurycy Zalewski's long explainer walks through how email moves from a sender's client to a recipient's mailbox: the MUA/MSA/MTA/LDA chain, SMTP commands and reply codes, DNS MX records, SPF/DKIM/PTR authentication, MIME encoding, and TLS on ports 25 and 465. It closes with privacy advice, arguing that email cannot be made truly encrypted and that DKIM signatures make messages provable forever.
- Email passes through several agents (MUA, MSA, MTA, LDA) because early systems could afford only one server and links were unreliable; MTAs retry failed deliveries for about five days.
- SMTP is a simple text protocol: the sender looks up the MX record, then issues HELO, MAIL FROM, RCPT TO and DATA, and reply codes in the 200, 300, 400 and 500 ranges signal success, continue, temporary failure and permanent failure.
- Modern delivery requires authentication: SPF lists allowed sending IPs in DNS, DKIM signs the message body, and big providers also require forward and reverse DNS to match the HELO hostname, which blocks most residential connections from sending directly.
- MIME multipart messages and encodings (quoted-printable for mostly-text, base64 for binaries, which adds about 33% size) let HTML and attachments travel over 7-bit ASCII transport.
- STARTTLS on port 25 can be stripped by attackers, so submission should use implicit TLS on port 465; the author argues that 'encrypted email' providers offer little real protection because the MTA sees plaintext.
- DKIM signatures act as lasting proof of origin, so a leaked message can be verified as genuine; the author suggests rotating keys and assuming email is readable in transit.
Discussion The thread is essentially empty: one top-level comment with a single point of engagement and no replies. The mood is light and joking rather than technical, with the commenter picking up a quoted line about the internet being made of edge cases and offering a playful list of adjectives for it.
- The internet's edge cases are what make it interesting (a few): The only comment praises the article's remark that the internet is made of edge cases, calling it profound in a tongue-in-cheek way. It offers adjectives such as exciting, challenging, broken and edgy, and invites others to add their own in replies.