Email Services
Summary
Email uses SMTP to send and relay messages and POP3 or IMAP to retrieve them. Each has a secure form that adds TLS. Knowing the ports and how TLS is applied helps configure email securely and recognize unprotected traffic.
In plain words
SMTP moves mail between servers (found using the recipient domain's MX records). It can be secured with STARTTLS (explicit) or SMTPS (implicit TLS). Ports: 25 for server-to-server relay, 587 for client submission (with STARTTLS and authentication), and 465 for implicit TLS submission (RFC 8314 re-established it in 2018 and now recommends it). Mailbox protocols: POP3 downloads mail (secure POP3S uses 995); IMAP keeps mail on the server for multiple clients (secure IMAPS uses 993).
Detailed explanation
- Simple Mail Transfer Protocol (SMTP): Sends and relays email between servers on port 25.
- Message submission: Clients submit outgoing mail to their provider on port 587 with STARTTLS or port 465 with implicit TLS; RFC 8314 recommends implicit TLS on 465.
- STARTTLS: Upgrades a plaintext connection to TLS on the same port.
- Implicit TLS: Uses TLS from the start of the connection.
- Post Office Protocol version 3 (POP3): Downloads mail from the server, usually removing it, on port 110; POP3S uses TLS on port 995.
- Internet Message Access Protocol (IMAP): Keeps mail on the server and syncs it across devices, on port 143; IMAPS uses TLS on port 993.
Important terms
taken from the text above- Simple Mail Transfer Protocol (SMTP)
- Sends and relays email between servers on port 25.
- Message submission
- Clients submit outgoing mail to their provider on port 587 with STARTTLS or port 465 with implicit TLS; RFC 8314 recommends implicit TLS on 465.
- STARTTLS
- Upgrades a plaintext connection to TLS on the same port.
- Implicit TLS
- Uses TLS from the start of the connection.
- Post Office Protocol version 3 (POP3)
- Downloads mail from the server, usually removing it, on port 110; POP3S uses TLS on port 995.
- Internet Message Access Protocol (IMAP)
- Keeps mail on the server and syncs it across devices, on port 143; IMAPS uses TLS on port 993.
Examples & real-world scenarios
- An email client submitting on port 587 with STARTTLS.
- IMAPS on 993 syncing mail across phone and laptop.
- MX records pointing to a company's mail gateway.
Scenario
A mail client is configured for POP3 on port 110 without TLS. Switching to POP3S (995) or IMAPS (993) encrypts the mailbox login and messages.
Common mistakes
- Mixing up ports 25 (relay), 587 (submission) and 465 (implicit TLS).
- Mixing up POP3 (download) and IMAP (server-side management).
Practical skills
- Match email protocols to their secure ports.
What I should remember
- SMTP: Port 25 for server-to-server relay.
- Submission: Port 587 with STARTTLS or 465 with implicit TLS.
- IMAPS: Port 993.
- POP3S: Port 995.