Port 587: Message Submission (SMTP with STARTTLS)
Port 587 is reserved for email message submission from mail clients to a Mail Submission Agent, as defined in RFC 6409. RFC 8314 notes that STARTTLS on port 587 is widely deployed for submission. Server-to-server relay stays on SMTP port 25.
Updated
Security Exposure
Submission servers accept user credentials, which makes 587 a target for password guessing and reuse of stolen credentials. Microsoft notes that Basic authentication makes credential capture easier and complicates MFA enforcement. If STARTTLS is optional, credentials can cross the network unencrypted.
Hardening
- Require authentication before accepting MAIL commands, as RFC 6409 section 4.3 mandates.
- Require STARTTLS before AUTH and reject cleartext logins.
- Support TLS 1.2 or later, as RFC 8314 requires of submission servers, and disable TLS 1.0 and 1.1, which RFC 8996 deprecates.
- Use modern authentication instead of Basic authentication where the platform allows.
- Throttle failed logins and per-account sending volume.
Monitoring
Log AUTH failures and successes with source addresses and alert on password-spray patterns across many accounts. Monitor outbound volume per authenticated user.
SMTP Submission Vulnerabilities
6 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2010-4344KEV Exim Heap-Based Buffer Overflow Vulnerability | Exim Heap-Based Buffer Overflow Vulnerability | - | 9.8 | 71.7% | KEV | 2010-12-14 |
| CVE-2010-4345KEV Exim Privilege Escalation Vulnerability | Exim Privilege Escalation Vulnerability | - | 7.8 | 18.0% | KEV | 2010-12-14 |
| CVE-2019-16928KEV Exim Out-of-bounds Write Vulnerability | Exim Out-of-bounds Write Vulnerability | - | 9.8 | 41.6% | KEV | 2019-09-27 |
| CVE-2019-10149KEV Exim Mail Transfer Agent (MTA) Improper Input Validation | Exim Mail Transfer Agent (MTA) Improper Input Validation | exim | 9.0 | 99.961% | KEV | 2019-06-05 |
| CVE-2018-6789KEV Exim Buffer Overflow Vulnerability | Exim Buffer Overflow Vulnerability | - | 9.8 | 82.1% | KEV | 2018-02-08 |
| CVE-2026-4020 Gravity SMTP <= 2.1.4 - Unauthenticated Sensitive Information Exposure via REST API | Gravity SMTP <= 2.1.4 - Unauthenticated Sensitive Information Exposure via REST API | RocketGenius | 7.5 | 73.8% | 2026-03-31 |
Frequently Asked Questions
What is the difference between port 25 and 587?→
RFC 6409 keeps relay between mail servers on port 25 and reserves 587 for submission from mail clients, which allows separate security policy such as mandatory authentication.
Is port 587 encrypted?→
It starts in plaintext and upgrades with STARTTLS. RFC 8314 requires mail submission servers to support TLS 1.2 or later.
Which vulnerabilities affect the service on port 587?→
This database lists 6 CVEs related to SMTP Submission, 5 of them confirmed as exploited by CISA. Examples: CVE-2010-4344, CVE-2010-4345, CVE-2019-16928, CVE-2019-10149.
Sources
Port assignments from the IANA Service Name and Transport Protocol Port Number Registry. Services can be configured to run on any port, so traffic on port 587 is not guaranteed to be SMTP Submission. Exploited-in-the-wild data from the CISA KEV catalog (CC0).