Cyberstudy
PDF p.284 In progress

Email Services

Open PDF at p.284 21 flashcards

Summary

PDF p.284

Email services use protocols like the Simple Mail Transfer Protocol (SMTP) for sending mail and mailbox protocols for storing and managing messages. Secure versions of these protocols, such as SMTPS, POP3S, and IMAPS, use encryption to protect communications.

In plain words

Supplementary — not from your PDF

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 (deprecated). Mailbox protocols: POP3 downloads mail (secure POP3S uses 995); IMAP keeps mail on the server for multiple clients (secure IMAPS uses 993).

Detailed explanation

PDF p.284

Email Protocols

  • SMTP (Simple Mail Transfer Protocol): Specifies how mail is sent from one system to another.
  • Mailbox Protocols: Store messages for users and allow them to download or manage them on the server.

Secure SMTP (SMTPS)

  • Message Delivery: The sender's SMTP server discovers the recipient's SMTP server IP using the domain name part of the email address, registered in DNS with an MX record.
  • TLS Security: SMTP can be secured using TLS, similar to HTTPS with a server certificate.
    • STARTTLS: Upgrades an existing unsecure connection to use TLS (explicit TLS).
    • SMTPS: Establishes a secure connection before any SMTP commands are exchanged (implicit TLS).

SMTP Ports

  • Port 25: Used for message relay between SMTP servers. STARTTLS can secure the connection if supported.
  • Port 587: Used by mail clients to submit messages for delivery. Requires STARTTLS and authentication.
  • Port 465: Used for message submission over implicit TLS (SMTPS), though deprecated.

Secure POP (POP3S)

  • POP3 (Post Office Protocol v3): Stores messages delivered by SMTP on a server. Downloads messages to the recipient's email client.
  • POP3S: Secured version of POP3 operating over TCP port 995.

Secure IMAP (IMAPS)

  • IMAP (Internet Message Access Protocol): Supports permanent connections to a server and multiple clients to the same mailbox. Allows managing mail folders on the server.
  • IMAPS: Secured version of IMAP operating over TCP port 993.

Important terms

taken from the text above
SMTP (Simple Mail Transfer Protocol)
Specifies how mail is sent from one system to another.
Mailbox Protocols
Store messages for users and allow them to download or manage them on the server.
Message Delivery
The sender's SMTP server discovers the recipient's SMTP server IP using the domain name part of the email address, registered in DNS with an MX record.
TLS Security
SMTP can be secured using TLS, similar to HTTPS with a server certificate.
STARTTLS
Upgrades an existing unsecure connection to use TLS (explicit TLS).
SMTPS
Establishes a secure connection before any SMTP commands are exchanged (implicit TLS).
Port 25
Used for message relay between SMTP servers. STARTTLS can secure the connection if supported.
Port 587
Used by mail clients to submit messages for delivery. Requires STARTTLS and authentication.
Port 465
Used for message submission over implicit TLS (SMTPS), though deprecated.
POP3 (Post Office Protocol v3)
Stores messages delivered by SMTP on a server. Downloads messages to the recipient's email client.
POP3S
Secured version of POP3 operating over TCP port 995.
IMAP (Internet Message Access Protocol)
Supports permanent connections to a server and multiple clients to the same mailbox. Allows managing mail folders on the server.
IMAPS
Secured version of IMAP operating over TCP port 993.
SMTP Simple Mail Transfer Protocol

Examples & real-world scenarios

Supplementary — not from your PDF
  • 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

Supplementary — not from your PDF
  • Mixing up ports 25 (relay), 587 (submission) and 465 (implicit TLS).
  • Mixing up POP3 (download) and IMAP (server-side management).

Practical skills

Supplementary — not from your PDF
  • Match email protocols to their secure ports.

What I should remember

Key Points PDF p.284
  • Email Protocols
    • SMTP: Sends mail between systems.
    • Mailbox Protocols: Store and manage messages.
  • Secure SMTP (SMTPS)
    • Message Delivery: Uses MX records in DNS.
    • TLS Security: STARTTLS (explicit) and SMTPS (implicit).
  • SMTP Ports
    • Port 25: Message relay, STARTTLS.
    • Port 587: Client submission, STARTTLS and authentication.
    • Port 465: Deprecated implicit TLS.
  • Secure POP (POP3S)
    • POP3: Downloads messages to client.
    • POP3S: Secured over TCP port 995.
  • Secure IMAP (IMAPS)
    • IMAP: Permanent connections, multiple clients, folder management.
    • IMAPS: Secured over TCP port 993.