---
title: "What is an SMTP server? How Simple Mail Transfer Protocol works"
description: "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."
---

# What is an SMTP server? How Simple Mail Transfer Protocol works

[Twilio](https://yomu.fyi/company/twilio) · Jesse Sumrak · Nov 20, 2026

**Type:** Explainer

## Summary

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.

## Takeaways

- SMTP handles sending email; POP3 and IMAP handle receiving email.
- The standard SMTP submission port is 587 with STARTTLS encryption; port 465 uses implicit TLS from the first byte.
- Most businesses should not run their own SMTP server due to technical complexity and deliverability issues; using an email service provider is recommended.

## FAQ

### How does SMTP differ from POP3 and IMAP?

SMTP sends emails, while POP3 and IMAP receive emails. SMTP pushes messages out, POP3 downloads to a single device, and IMAP syncs across devices by keeping emails on the server.

### What port should I use for SMTP?

The default submission port is 587 with STARTTLS encryption. Port 465 uses implicit TLS from the start. Port 25 is for server-to-server relay but is often blocked by ISPs.

### Is it recommended to run my own SMTP server?

Technically you can set up your own SMTP server, but it requires technical expertise and constant maintenance and can lead to deliverability issues. Using an established email service provider is generally more efficient and reliable.

**Tags:** [SMTP](https://yomu.fyi/topic/smtp)

- Source: [Twilio](https://www.twilio.com/en-us/blog/insights/what-is-an-smtp-server)
- Source URL: https://www.twilio.com/en-us/blog/insights/what-is-an-smtp-server
- Ingested by Yomu: 2026-11-21T18:00:15.893Z

[Read original post](https://www.twilio.com/en-us/blog/insights/what-is-an-smtp-server)
