Port 587: SMTP submission (Mail submission for email clients)
What port 587 (TCP) does, the security risks of leaving it open, and how to secure and test it.
| Port | 587 |
|---|---|
| Transport | TCP |
| Service | Mail submission for email clients (SMTP submission) |
| Encrypted | Yes (STARTTLS) |
What is port 587?
Port 587 is where email apps and devices send outgoing mail to their own mail server, after logging in. Port 465 is an alternative that uses TLS from the start.
Common uses
- Outlook, phones and apps sending email
- Scanners, printers and websites sending email through Microsoft 365 or Google Workspace
Security risks
- Stolen mailbox passwords used to send spam or phishing
- Password-spraying attacks
How to secure port 587
- Require authentication and TLS
- Enable multi-factor authentication and block legacy authentication
- Use app passwords or OAuth for devices that send mail
How to check if port 587 is open
| Where | Command |
|---|---|
| Scan from another machine | nmap -p 587 <host> |
| Windows (PowerShell) | Test-NetConnection <host> -Port 587 |
| Linux (what is listening) | sudo ss -tulpn | grep :587 |
| Windows (what is listening) | netstat -ano | findstr :587 |
Only scan systems you own or have permission to test.
Related ports
Frequently asked questions
What is port 587 used for?
Port 587 (TCP) is used by Mail submission for email clients (SMTP submission). Port 587 is where email apps and devices send outgoing mail to their own mail server, after logging in.
Is it safe to open port 587?
Only if the service needs to be reached and is configured securely. Require authentication and TLS.
How do I check if port 587 is open?
From another computer, run nmap -p 587 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 587.
Learn more: TCP, UDP and ports explained and firewall basics.