Email Protocols and Ports in 2026: SMTP, IMAP, POP3, OAuth2 Requirements and TLS Configuration

Email Protocols and Ports: SMTP, IMAP, POP3, OAuth2 Requirements and TLS Configuration - SMTPedia technical reference
SMTP, IMAP, and POP3 protocols and ports for email: 25/465/587 for SMTP, 993 for IMAP, 995 for POP3. Covers STARTTLS vs implicit TLS, OAuth2 requirements for Gmail Workspace and Microsoft 365, POP3 sunset timeline, provider settings for the top 5 providers, and common configuration errors.
Alaa
By Alaa
SMTPedia documents email infrastructure end to end: SMTP standards from the RFC archive, delivera...
8 min read Updated Jul 17, 2026 1.3K views

Quick email protocols reference

Email uses three protocols with different jobs: SMTP sends mail between servers, IMAP and POP3 fetch mail from a server to a client. Ports, encryption, and authentication have all shifted in the last 3 years and legacy defaults are being sunset.

ProtocolJobModern port2026 status
SMTPServer-to-server relay, client submission587 (STARTTLS) or 465 (implicit TLS)Standard. Basic auth being sunset in favor of OAuth2.
IMAPClient reads mail from server (kept on server)993 (implicit TLS)Standard. OAuth2 required on Gmail, M365, Yahoo.
POP3Client downloads and deletes from server995 (implicit TLS)Deprecated. Gmail sunset for new accounts Jan 2025. Yahoo following.
Port 25Legacy SMTP relayBlocked by most ISPs on residential connectionsServer-to-server only, never for client submission.
StandardsRFC 5321 (SMTP), RFC 9051 (IMAP4rev2), RFC 1939 (POP3), RFC 6749 (OAuth2)

What SMTP, IMAP, and POP3 actually do

The three email protocols split responsibilities cleanly. SMTP is transport: it moves mail from a sender’s client to the sender’s server, and from server to server across the internet until it reaches the recipient’s inbox server. IMAP and POP3 are access: they let a mail client (Apple Mail, Outlook, Thunderbird) fetch and manage mail already sitting on the inbox server.

  • SMTP (Simple Mail Transfer Protocol) handles submission (client to server) and relay (server to server). Defined in RFC 5321 with submission-specific rules in RFC 6409.
  • IMAP (Internet Message Access Protocol) keeps mail on the server and synchronizes state (read/unread, folders, flags) across multiple devices. Latest revision is RFC 9051 (IMAP4rev2, 2021).
  • POP3 (Post Office Protocol) downloads mail to a single client and typically deletes from the server. Defined in RFC 1939, unchanged since 1996. Being sunset by major providers.

Port reference: 2026 canonical values

PortProtocolEncryptionPurposeStatus
25SMTPOptional STARTTLSServer-to-server relayStandard for MTAs. Blocked by residential ISPs.
465SMTPImplicit TLSClient submission with immediate TLSPreferred for modern submission (RFC 8314).
587SMTPSTARTTLSClient submission with STARTTLS upgradeStandard submission port. Still widely supported.
110POP3Optional STARTTLSPlaintext or STARTTLS POP3Deprecated. Use 995.
995POP3Implicit TLSEncrypted POP3Only acceptable POP3 port in 2026. Provider POP3 access itself being sunset.
143IMAPOptional STARTTLSPlaintext or STARTTLS IMAPDeprecated. Use 993.
993IMAPImplicit TLSEncrypted IMAPStandard. Widely supported.
2525SMTPSTARTTLSAlternative submission portUsed by ESPs (SendGrid, Mailgun) when 25/465/587 are blocked.

STARTTLS vs implicit TLS: the difference

Two ways to encrypt: explicit (STARTTLS) or implicit.

  • STARTTLS (explicit): the client connects in plaintext, issues a STARTTLS command, then upgrades the same TCP connection to TLS. Used on ports 587 (SMTP submission), 143 (IMAP), 110 (POP3). Risk: if an attacker strips the STARTTLS response, the connection stays plaintext.
  • Implicit TLS: the client connects with TLS from byte one, before any SMTP or IMAP command exchanges. Used on ports 465 (SMTP), 993 (IMAP), 995 (POP3). Safer against downgrade attacks.

RFC 8314 (2018) recommends implicit TLS on 465/993/995 for all new deployments and explicit STARTTLS on 587 for backward compatibility. In 2026, implicit TLS is the safer default.

Never use plaintext ports 25, 110, or 143 for authenticated client submission

Port 25 is for server-to-server relay only. Ports 110 and 143 without STARTTLS transmit credentials in plaintext. Any client documentation still recommending plaintext IMAP or POP3 in 2026 is a security bug.

POP3 sunset: what is happening

POP3 is being retired by major mailbox providers. The reasons: POP3 downloads and deletes mail from the server, which breaks multi-device sync. It has no built-in modern authentication (no OAuth2 support), which forces basic auth on providers who want to eliminate password-based access.

  • Gmail: POP3 disabled by default for new accounts as of January 2025. Existing accounts can still enable it but Google now shows a deprecation warning.
  • Yahoo: POP3 access sunset announced for 2026, no exact date confirmed.
  • Microsoft 365: POP3 still supported but requires modern authentication (OAuth2) since October 2022. Basic auth POP3 is dead.
  • Apple iCloud: POP3 disabled since 2023.

New client integrations should use IMAP, not POP3. If your product still recommends POP3 setup, plan migration.

OAuth2 requirements by provider

Basic authentication (username + app password) is being phased out. OAuth2 is required for API and IMAP/SMTP access on the major providers.

ProviderBasic auth SMTP/IMAPOAuth2 required?Notes
Gmail (personal)App passwords still work if 2FA enabledPreferred for apps, mandatory for WorkspaceLess secure app access removed in 2022.
Google WorkspaceBlocked by default since 2024MandatoryAdmin can enable password app access but discouraged.
Microsoft 365Disabled since October 2022MandatoryBasic auth exceptions expire on individual tenants.
Outlook.com (personal)App passwords with 2FAPreferred for appsSimilar to personal Gmail.
Yahoo MailApp passwords with 2FA requiredOptionalOAuth2 available via Yahoo Developer.
Apple iCloudApp-specific passwords with 2FAOptionalNo public OAuth2 for iCloud IMAP.
ProtonMailBridge password (Bridge app only)N/ALocal IMAP/SMTP through the Bridge desktop app.
App passwords vs OAuth2

App passwords are 16-character strings the user generates in provider settings, then pastes into your app for IMAP/SMTP login. They work everywhere but are a security compromise. OAuth2 uses browser-based consent, refreshable tokens, and per-scope permissions. If you build a product accessing user mail via IMAP or SMTP in 2026, ship OAuth2 for Gmail, Google Workspace, and Microsoft 365, and app passwords as fallback for other providers.

Common provider settings

Reference table for the top providers (always verify against provider documentation, values can change):

ProviderSMTP serverSMTP portIMAP serverIMAP port
Gmailsmtp.gmail.com465 (SSL) or 587 (TLS)imap.gmail.com993
Microsoft 365smtp.office365.com587 (STARTTLS)outlook.office365.com993
Outlook.comsmtp-mail.outlook.com587 (STARTTLS)outlook.office365.com993
Yahoo Mailsmtp.mail.yahoo.com465 (SSL) or 587 (TLS)imap.mail.yahoo.com993
iCloud Mailsmtp.mail.me.com587 (STARTTLS)imap.mail.me.com993

For 218 more providers, see the SMTPedia provider settings directory.

Common configuration errors

  1. Using port 25 for client submission. ISPs block it. Use 587 (STARTTLS) or 465 (implicit TLS).
  2. Setting SSL/TLS to “None” or “Auto” in old clients. Force TLS explicitly. Some clients silently fall back to plaintext if TLS handshake fails.
  3. Trying to use POP3 for shared inboxes. POP3 downloads and deletes. Use IMAP.
  4. Using an outdated app password after enabling 2FA. App passwords must be regenerated after security changes.
  5. Configuring IMAP for a Gmail Workspace account without enabling IMAP in Workspace admin. Workspace admins can disable IMAP tenant-wide.
  6. Mismatching SMTP AUTH mechanism. Gmail requires PLAIN with TLS or OAuth2. Some clients default to LOGIN or CRAM-MD5 which Gmail rejects.
  7. Ignoring server certificate validation. Some legacy clients let you disable cert checking. This defeats TLS entirely.
  8. Using STARTTLS on a port that expects implicit TLS. On port 465, the client must open with TLS immediately, not send STARTTLS.

Email protocols FAQ

Should I use POP3 or IMAP in 2026?

IMAP for anything modern. POP3 is being sunset by Gmail and Yahoo. IMAP keeps mail on the server and syncs across devices, which matches how people use mail today.

What is the difference between port 465 and port 587?

Both are for SMTP client submission with TLS. Port 465 uses implicit TLS (encryption starts immediately). Port 587 uses STARTTLS (connection starts plaintext, then upgrades). In 2026, RFC 8314 recommends port 465 for new deployments because implicit TLS is more resistant to downgrade attacks.

Why is port 25 blocked on my home internet?

Residential ISPs block outbound port 25 to prevent malware and spam. Use your ISP’s or provider’s submission port (587 or 465) with authentication instead.

Do I need OAuth2 to send mail through Gmail SMTP?

For a personal Gmail account with 2FA, an app password on port 587 or 465 still works. For Google Workspace, admins increasingly require OAuth2 and disable basic auth. For any commercial product accessing user mail, ship OAuth2.

What replaces POP3 after sunset?

IMAP4rev2 (RFC 9051). It offers the same fetch-mail-to-client behavior with server-side sync, folder support, and OAuth2 authentication. Migrate POP3 configurations to IMAP with the same credentials (or OAuth2 tokens).

Is STARTTLS still safe?

Yes, if implemented correctly. Modern MTAs and clients treat STARTTLS as mandatory (they refuse to fall back to plaintext if the server offers STARTTLS). The historical concern was downgrade attacks where an attacker stripped STARTTLS from the server response; RFC 8314 addresses this with MTA-STS and DANE for MTA-to-MTA and implicit TLS for client submission.

What is port 2525?

An alternative SMTP submission port used by some ESPs (SendGrid, Mailgun) when ports 25, 465, or 587 are blocked by the client’s network. Not standardized, no RFC. Works but is a fallback, not a default.

Final words

Three protocols, three jobs. SMTP moves mail, IMAP reads it from the server, POP3 downloads and deletes. In 2026 the shift is clear: POP3 is dying, OAuth2 is mandatory for Gmail Workspace and Microsoft 365, implicit TLS on 465/993/995 is the new default, and plaintext ports 25/110/143 have no place in modern client configuration.

If you build a product that accesses user mail: ship IMAP not POP3, ship OAuth2 for the top three providers, and ship implicit TLS as the default connection mode. If you configure your own mail client: port 587 or 465 for sending, port 993 for reading, TLS always, credentials never in plaintext.

Verify addresses before you send.

SMTPing catches disposables, role addresses, catch-alls, syntax errors, dead mailboxes and known spam traps. 13 validation types, 25 free checks daily, no card required.

Try SMTPing →


About the Author

Alaa - SMTPedia author

Alaa · LinkedIn

Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. I’ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.


About SMTPedia

SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.

We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.

Email Protocols and Ports in 2026: SMTP, IMAP, POP3, OAuth2 Requirements and TLS Configuration
Email Protocols and Ports in 2026: SMTP, IMAP, POP3, OAuth2 Requirements and TLS Configuration