Foxcolab

Glossary

SMTP (Simple Mail Transfer Protocol)

Definition

SMTP (Simple Mail Transfer Protocol): The internet standard (RFC 5321) for sending email. Mail apps use SMTP to submit outgoing messages to a provider, and mail servers use it to relay them toward the recipient, one hop at a time. Reading mail uses IMAP or POP3 instead.

Also known asSimple Mail Transfer ProtocolSMTP serveroutgoing mail serverESMTP

In short

SMTP (Simple Mail Transfer Protocol, RFC 5321) is the standard for sending email. Mail apps use it to hand outgoing messages to a provider, and mail servers use it to relay messages to each other. Port 25 is for relay between servers, and ports 587 and 465 are for submission from mail apps. SMTP carries mail one hop at a time and doesn't verify the sender or guarantee encryption by itself.

Key takeaways

  • SMTP only sends. Reading mail from a server is the job of IMAP or POP3.
  • Port 25 is for relay between servers. Mail apps submit on 587 with STARTTLS or 465 with TLS from the first byte, and sign in.
  • STARTTLS upgrades a connection to TLS, but on port 25 it is optional and an attacker in the path can strip the offer.
  • TLS protects one hop at a time, and every server on the route still handles the readable message.
  • SMTP doesn't check that the From address is real. SPF, DKIM and DMARC were added for that.

Last reviewed 30 November 2026 by Foxcolab Team

SMTP, the Simple Mail Transfer Protocol, is the standard that sends email across the internet. It is defined in RFC 5321. Your mail app uses SMTP to hand an outgoing message to your provider. Your provider's server then uses SMTP again to pass it to the recipient's server, which it finds through the domain's MX record. SMTP only sends. Reading a mailbox is the job of IMAP or POP3.

What a session looks like#

Server-to-server delivery (C: client, S: server)·Text
S: 220 mx.example.net ESMTP
C: EHLO mail.example.com
S: 250-mx.example.net
S: 250 STARTTLS
C: STARTTLS
S: 220 Ready to start TLS
   (TLS handshake, EHLO again)
C: MAIL FROM:<alice@example.com>
S: 250 OK
C: RCPT TO:<bob@example.net>
S: 250 OK
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
C: (headers, body, then a single dot)
S: 250 OK
C: QUIT
S: 221 Bye

MAIL FROM and RCPT TO form the envelope, which servers use for routing and bounces. The From line your recipient sees travels inside DATA, and SMTP never checks it against the envelope. That gap makes email spoofing possible.

Ports 25, 587 and 465#

PortUsed forEncryptionSign-in
25Relay between mail serversSTARTTLS, if both sides offer itNone
587Submission from mail apps (RFC 6409)STARTTLSRequired
465Submission from mail apps (RFC 8314)TLS from the first byteRequired

For a mail app, printer or script that sends mail, use 587 or 465 with your account's credentials and leave 25 to servers. RFC 8314 prefers 465 and notes the two are equally secure when the app requires TLS.

What STARTTLS does and doesn't guarantee#

STARTTLS (RFC 3207) upgrades a plain connection to TLS after the server offers it. On port 25 that protection is opportunistic:

  • It is optional. RFC 3207 forbids a public mail server from requiring STARTTLS, so a sender that gets no offer usually delivers in the clear.
  • The offer can be stripped. Someone in the network path can delete the 250 STARTTLS line, a man-in-the-middle attack the RFC itself describes. MTA-STS and DANE (RFC 7672) exist to close that hole.
  • It covers one hop. Each server on the route reads the message before passing it on. Hiding content from the servers takes end-to-end encryption.

In Foxcolab#

You write Foxcolab Mail in its own apps for iPhone and Android and at mail.foxcolab.com, with no outgoing server to set up. Mail to other providers leaves Foxcolab over SMTP, signed with your domain's DKIM key (custom domains). Mail from one Foxcolab user to another is end-to-end encrypted on your device, so Foxcolab can't read it. Hop-by-hop TLS can't promise that.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to