---
title: "SMTP"
description: "4 posts about SMTP, summarised, each linking to the original."
---

# SMTP
> 4 posts about SMTP, summarised, each linking to the original.

## Articles

### [What is an SMTP server? How Simple Mail Transfer Protocol works](https://yomu.fyi/post/what-is-an-smtp-server-how-simple-mail-transfer-protocol-works.md)
- Company: [Twilio](https://yomu.fyi/company/twilio.md)
- Author: Jesse Sumrak
- Published: Nov 20, 2026
- Type: Explainer

An SMTP server sends and relays outgoing email using the Simple Mail Transfer Protocol (SMTP), the internet standard (RFC 5321) for moving mail between servers, running on top of TCP for reliable delivery. SMTP handles only sending; POP3 and IMAP retrieve mail, while the server uses a store-and-forward process via a mail transfer agent, authenticating the sender and performing a DNS lookup. The default submission port is 587 with STARTTLS encryption, port 465 uses implicit TLS, and port 25 is for server-to-server relay but often blocked by ISPs. Most businesses outsource SMTP to a service like Twilio SendGrid to manage infrastructure, authentication (SMTP AUTH), and deliverability rather than running their own server, which requires constant maintenance. Extensions like MIME allow attachments and HTML formatting, while STARTTLS adds encryption, and SMTP AUTH requires login credentials to prevent unauthorized use.


### [SMTP port 587 vs. 465: Which port should you use?](https://yomu.fyi/post/smtp-port-587-vs-465-which-port-should-you-use.md)
- Company: [Twilio](https://yomu.fyi/company/twilio.md)
- Author: Jesse Sumrak, David Blum
- Published: Nov 14, 2026
- Type: Explainer

Choosing the wrong SMTP port can cause authentication failures, bounced emails, and security vulnerabilities. Port 587 with StartTLS is the standard submission port and the recommended default for most setups, as connections start unencrypted and upgrade to secure. Port 465 uses implicit TLS, meaning encryption begins immediately, and it is an official submission port again after years of being labeled deprecated. Port 25 should be avoided for client applications because most ISPs block it, while port 2525 serves as an unofficial alternative when standard ports are blocked. For new configurations, use port 587 with StartTLS, falling back to port 465 only if compatibility issues arise.


### [SMTP relay service: What is SMTP relay & how does it work?](https://yomu.fyi/post/smtp-relay-service-what-is-smtp-relay-how-does-it-work.md)
- Company: [Twilio](https://yomu.fyi/company/twilio.md)
- Author: Jesse Sumrak
- Published: Nov 5, 2026
- Type: Explainer

SMTP relay is the backbone of professional email delivery, routing messages through relay servers to reach recipients reliably. An SMTP relay service is a third-party server that accepts outgoing messages and delivers them to recipients’ mail servers, handling high-volume sending and managing sender reputation. The relay server checks credentials, looks up the recipient’s mail server, and delivers the message, similar to how a post office routes physical mail. Businesses can choose between self-managed relay, which offers full control but requires managing reputation and scaling, or a hosted relay service that handles infrastructure and delivery. Choosing the right service depends on factors like sending volume, deliverability tools, authentication support, and security features such as TLS encryption and API key authentication.


### [What is StartTLS?](https://yomu.fyi/post/what-is-starttls.md)
- Company: [Twilio](https://yomu.fyi/company/twilio.md)
- Author: Jesse Sumrak
- Published: Nov 4, 2026
- Type: Explainer

StartTLS is an email protocol command that upgrades an existing plain-text SMTP connection to an encrypted TLS connection. It starts unencrypted, then the client sends the STARTTLS command, and the server and client perform a TLS handshake before any credentials or email are transmitted. Port 587 is the standard port for StartTLS, while port 465 uses implicit TLS, which encrypts from the first byte. StartTLS is vulnerable to man-in-the-middle attacks during the initial unencrypted handshake, and enforced TLS with MTA-STS can close that gap. TLS 1.2 or higher should be used, as TLS 1.0 and 1.1 are deprecated and SSL is retired.
