Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

SMTP Security

Direct answer

SMTP security covers authenticated submission on port 587 with TLS, preventing open relays, TLS between mail servers, MTA-STS and DANE to enforce it, and rate limits against abuse.

When to use this

Use this when securing SMTP submission and server-to-server mail.

First 30 seconds

1. SMTP security: no open relay, TLS, authenticated submission (587), rate limits.

2. MTA-STS and TLS-RPT for inbound TLS enforcement.

3. DANE where DNSSEC available.

4. Restrict SMTP egress from clients.

5. Monitor queues.

Operational verification

client → submission (auth, TLS) → MTA → MX

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Port 25 used for client submission instead of 587/465 with authentication.
  • Open relay after a misconfiguration (test from outside after every change).
  • STARTTLS offered with a self-signed or expired certificate.
  • No rate limiting on authenticated submission — compromised accounts send spam at volume.
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Key commandopenssl s_client -starttls smtp -connect mail.example.com:25 -crlf
Scope / prerequisiteUse this when securing SMTP submission and server-to-server mail.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Testing a mail server Verify boundary
openssl s_client -starttls smtp -connect mail.example.com:25 -crlf
swaks --to test@example.com --server mail.example.com --tls

Check the certificate, supported TLS versions, that the server is not an open relay (rejects mail for foreign domains from foreign senders), and that SMTP AUTH is only offered after STARTTLS.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Use authenticated submission on port 587 with TLS.
  • Never run an open relay.
  • Enforce TLS with MTA-STS or DANE.
Key checks
  • openssl s_client -starttls smtp -connect <mx>:25 — TLS on SMTP
  • swaks --to user@<domain> --server <mx> — test delivery
  • Open relay test — closed
ReferenceWhy it matters1 section · depth on demand

Ports and settings

PortUse
25Server-to-server (MX), STARTTLS opportunistic
587Client submission with STARTTLS and authentication
465Client submission with implicit TLS

Server settings: no open relay (only authenticated users or known networks may relay), TLS 1.2+, rate limits per user to contain compromised accounts. Test relay with swaks --to x@external.com --server mx.example.com.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

SMTP security protects email in transit between servers and the infrastructure that handles it. Classic SMTP was designed without encryption or sender authentication, so several extensions were added.

MechanismProtects
STARTTLSOpportunistic encryption between servers
MTA-STS / DANEEnforce TLS and authenticate receiving servers
TLS-RPTReports on TLS failures
SMTP AUTH over TLSClient submission (port 587/465)
SPF, DKIM, DMARCSender authentication
Relay restrictionsNo open relays
openssl s_client -starttls smtp -connect mx.example.com:25 -servername mx.example.com </dev/null | head

Restrict outbound port 25 from clients so only mail servers send email, which limits spam from infected devices.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Email Security → SMTP Security. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7489 · confidence 94%
Confirmation

Confirm action

Continue?