When port 587 stops working, the failure is usually not “email” in general. It is almost always a problem in smtp submission troubleshooting, a bad client setting, a blocked network path, or a server policy that rejects the message after the TCP connection succeeds.
Cisco CCNA v1.1 (200-301)
Learn essential networking skills and gain hands-on experience in configuring, verifying, and troubleshooting real networks to advance your IT career.
Get this course on Udemy at the lowest price →This article shows how to isolate the real failure point in a secure mail transfer setup. You will see how email relay configuration differs from inbound mail delivery, why STARTTLS matters, and how to test each layer without guessing. The same workflow applies whether you are fixing a desktop mail client, a mobile app, or an automated system that sends alerts from a script.
Quick Answer
Port 587 is the standard SMTP submission port for authenticated outgoing mail, and it usually requires STARTTLS plus valid credentials. The fastest way to fix port 587 problems is to verify DNS and reachability, confirm the server name and encryption mode, test authentication, then check server-side relay rules and TLS certificate issues.
Quick Procedure
- Verify the SMTP hostname, DNS lookup, and port 587 reachability.
- Confirm the client is using STARTTLS, not the wrong encryption mode.
- Test authentication with a known-good username and current password or app password.
- Check certificate trust, hostname match, and local time accuracy.
- Review relay restrictions, sender rules, and provider security policies.
- Retest from another network or client to isolate local interference.
- Capture the exact error text, timestamp, and server response for escalation.
| Primary Port | 587 for SMTP submission as of October 2026 |
|---|---|
| Typical Encryption | STARTTLS after connection as of October 2026 |
| Primary Use | Authenticated outbound email from clients and apps as of October 2026 |
| Common Failure Areas | DNS, firewall, auth, TLS, and relay policy as of October 2026 |
| Best First Test | OpenSSL s_client or Test-NetConnection as of October 2026 |
| Related Skill Area | Mail and transport troubleshooting in Cisco CCNA v1.1 (200-301) as of October 2026 |
For networking basics that sit behind this problem, the OSI reference model matters because SMTP, TCP, TLS, and DNS fail at different layers. That is why a port test alone does not prove the full path is healthy. A TCP connect can succeed while authentication, certificate validation, or server relay policy still blocks delivery.
Understanding Port 587 and SMTP Submission
SMTP submission is the client-to-mail-server path used when a mail app, script, or device sends outbound email through an authenticated server. It is different from inbound mail delivery, which is the path other mail servers use to deliver mail to your domain on ports such as 25. If you mix those two paths together during troubleshooting, you will chase the wrong layer.
Port 587 is the preferred submission port because it is designed for authenticated sending, not open relay behavior. Modern providers expect clients to connect, negotiate STARTTLS, and then authenticate before sending mail. According to the IETF standard for message submission, port 587 is intended for mail submission by end users, while port 465 is commonly used for implicit TLS in some environments; see the relevant guidance in RFC 6409 and RFC 8314.
What makes port 587 different from port 465?
Port 587 usually starts in plain TCP and upgrades with STARTTLS after the server advertises it. Port 465, by contrast, expects TLS immediately after connection, which is why some clients label it as SSL/TLS or implicit TLS. If you choose the wrong mode, the connection may open but the TLS handshake will fail before authentication ever starts.
That distinction matters in smtp submission troubleshooting because many users think “secure mail transfer setup” means any encrypted SMTP port will work the same way. It does not. A server may support 587 only with STARTTLS, may reject legacy AUTH methods, and may require the client to present a valid certificate chain.
Why authentication is part of the path
Submission usually requires a username and password, an app password, OAuth tokens, or another service-specific credential. Providers often disable legacy authentication or restrict it per mailbox, tenant, or security policy. Microsoft documents SMTP AUTH behavior in Microsoft Learn, and Google Workspace administrators often need to review SMTP relay and authentication settings in the provider console.
A successful TCP connection is only the first checkpoint. You can connect to port 587 and still get denied because the mailbox is locked, the password is stale, the sender address is not allowed, or the server requires a modern auth flow. In practical terms, “the port is open” is not the same thing as “mail submission works.”
Most port 587 outages are not transport failures. They are policy, authentication, or TLS problems that show up only after the connection is already established.
For operators studying this as part of Cisco CCNA v1.1 (200-301), this is a useful example of layered troubleshooting. A working network path does not guarantee a working application path, and the inverse is also true.
Common Symptoms and Error Messages
Most smtp submission troubleshooting starts with the error text. “Could not connect to SMTP host” usually points to DNS, reachability, or a firewall issue before the server is even engaged. “535 authentication failed” usually means the server rejected credentials, while “Must issue STARTTLS first” means the client tried to authenticate or send before negotiating encryption.
Other common symptoms include timeouts, dropped connections, and delays only on certain networks. For example, a laptop may send mail from the office but fail on home Wi-Fi because the router, ISP, or security software interferes with outbound SMTP. Intermittent failures are especially common when a provider rate limits suspicious logins or when the client retries too aggressively.
- Connection timeout usually indicates a blocked port, a wrong hostname, or an unreachable server.
- 535 authentication failed usually indicates bad credentials, disabled SMTP AUTH, or an expired app password.
- Must issue STARTTLS first usually indicates the client is trying to authenticate or send before encryption is established.
- Relay denied usually indicates the server does not allow your account or IP to send to that recipient or domain.
- Suspicious sign-in or account challenge prompts usually indicate provider security controls or conditional access.
Capture the exact error text, the time it happened, the mail client name, the server hostname, and the full server response if available. Those details often reveal whether the failure is client-side, network-side, or policy-related. If the issue appears only on one device, one user profile, or one network, that is a strong clue that the root cause is local rather than server-wide.
Note
Do not “fix” mail problems by changing three settings at once. Change one variable, retest, and record the result so you can identify the actual failure layer.
Prerequisites
You do not need advanced tools to start, but you do need enough access to test each layer cleanly. A lot of wasted time comes from troubleshooting without the right permissions or without a known-good test account.
- An email client or script that can be reconfigured for outgoing SMTP settings.
- The correct SMTP hostname from the provider or mail administrator.
- A valid username and current password, app password, or OAuth-based sign-in method.
- Permission to test outbound connections from the network or host.
- Basic command-line tools such as
telnet,nc, oropenssl. - Access to mail logs, server logs, or provider admin dashboards if you manage the server.
- A second network, such as a mobile hotspot, for isolation testing.
For network terminology, the first time you see a network issue in this context, think “path to the server,” not just “internet access.” You can have working browsing and still have outbound SMTP blocked.
Check Basic Network Connectivity First
DNS is the service that translates a hostname into an IP address, and it is the first thing to verify when port 587 mail submission fails. If the SMTP hostname is wrong or does not resolve, the client will never reach the mail server. A bad DNS result can look like a mail problem even though it is really a name resolution problem.
Start by checking that the hostname resolves correctly from the client network. Then verify that port 587 is reachable using a command-line test. On Windows, Test-NetConnection smtp.example.com -Port 587 is often the quickest test. On Linux or macOS, nc -vz smtp.example.com 587 or telnet smtp.example.com 587 can confirm basic reachability.
- Resolve the hostname with
nslookupordigand confirm it returns the expected address. - Test the port with
Test-NetConnection,nc, ortelnetfrom the same host that fails in the mail client. - Check local firewall rules, antivirus software, and endpoint security controls for outbound SMTP blocks.
- Test from another network, such as a mobile hotspot, to see whether the issue follows the client or stays with the network.
- If you manage the environment, review router ACLs, firewall policies, and ISP filtering for outbound port 587 restrictions.
A successful port test proves only that traffic can reach the server socket. It does not prove the server will accept your credentials or permit relaying. That is why connectivity checks must come first but never be the final step.
For secure transport validation, SSL/TLS errors often appear only after the TCP path is already open. That means network testing and encryption testing are related, but they are not the same thing.
Validate SMTP Client Configuration
Misconfigured client settings are one of the fastest ways to break a secure mail transfer setup. The server name, port number, and encryption mode must match the provider’s expected submission profile exactly. If the client is pointed at the inbound MX host instead of the submission host, mail may fail even though the domain looks correct.
Confirm that the client is set to port 587 with STARTTLS if the provider expects submission over STARTTLS. Do not assume that “SSL/TLS” in the client means the same thing as STARTTLS. Many clients label both options poorly, and selecting the wrong one creates a handshake failure that looks like a credential problem.
| Correct setting | Port 587 with STARTTLS or explicit TLS upgrade |
|---|---|
| Common mistake | Port 587 with implicit TLS, or port 465 with STARTTLS |
| Why it fails | The client and server disagree on when encryption begins |
Also verify the username format. Some providers require the full email address, while others accept only the mailbox name. If the client has a “use same credentials as incoming mail” option, check whether that makes sense for the provider. It is often wrong when the incoming server uses one identity model and the outgoing server uses another.
Advanced settings matter too. Review connection timeout values, outgoing authentication options, and certificate verification settings. A long timeout can hide a broken path, while disabling certificate validation can mask the real issue and create a security risk. Microsoft and other providers document modern authentication requirements because legacy login behavior is increasingly restricted in managed environments.
Authentication and Credential Problems
Authentication is the process of proving the client is allowed to send mail through the submission server. If credentials are wrong, expired, revoked, or blocked by policy, port 587 can still accept a connection and then deny the actual send attempt. That is why authentication failures often show up after the initial handshake rather than before it.
Passwords are still a common cause of failure, especially after resets, account lockouts, or forced rotation. One device may work while another fails because one client cached an old password. Re-entering the credentials, deleting the saved profile, or re-adding the account often fixes this quickly. If the provider blocks basic auth, you may need an app password or OAuth instead of a normal mailbox password.
- Expired password or changed password on one device only.
- Disabled SMTP AUTH at the mailbox or tenant level.
- App password required when the provider blocks standard password login for mail clients.
- OAuth required when modern authentication is mandatory.
- Cached credentials in the OS credential store or mail profile.
Service accounts and automation tools create an additional layer of complexity. A script may work for months and then fail after a policy change because the tenant now requires modern authentication or because the account is subject to conditional access. When that happens, the right fix is usually not “try again.” It is to generate the correct credential type and confirm the account is still authorized for submission.
For standards-minded troubleshooting, this is also where a authentication failure should be separated from a transport failure. If the socket opens but the server replies with a 535 or 5.7.x code, the network is probably fine and the identity layer is not.
TLS, Certificates, and Encryption Mismatches
STARTTLS is the SMTP command that upgrades a plain connection into an encrypted one. On port 587, the server often expects the client to connect first, advertise capability, and then negotiate TLS before credentials are sent. If the client skips that step or if the handshake fails, the server may refuse the session with a clear policy error.
Certificate problems are a common source of false alarms in a secure mail transfer setup. If the hostname in the client does not match the certificate subject or SAN entries, validation can fail even though the server is online. Outdated clients can also fail because they do not support current TLS versions or required cipher suites. In those cases, the server is fine, but the client cannot complete the negotiation.
- Check the certificate validity dates and ensure the server certificate has not expired.
- Verify that the hostname in the client matches the certificate name exactly.
- Confirm that intermediate certificates are installed correctly on the server.
- Check the client system clock and time zone, since bad time settings can break trust validation.
- Retest with a current client version before changing server-side security settings.
Do not leave certificate validation disabled as a permanent workaround. That may get mail moving during a controlled test, but it exposes the session to interception and makes your result meaningless from a security perspective. If you need to prove whether the certificate is the issue, test briefly, document the result, and restore validation immediately after.
The related encryption layer is often where a working network stops being a working mail path. That is why errors like “Must issue STARTTLS first” are actually useful: they tell you exactly which layer is failing.
Server-Side Submission Policies and Restrictions
Many port 587 problems are caused by email relay configuration rules on the server, not by the client. A mail server may require authentication before accepting outbound mail, may limit which sender addresses are allowed, or may reject messages that violate anti-abuse policy. This is normal behavior on modern hosted platforms.
Relay restrictions are especially important when the sender address does not match the authenticated mailbox. Some servers allow aliases, some require exact mailbox identity, and some reject “From” addresses that were never approved. Attachment limits, rate limits, and message volume controls can also cause submission failures that look random from the client side.
- Relay denied because the user is not authenticated or not allowed to relay.
- Sender mismatch because the From address does not match the signed-in account or approved alias.
- Rate limit reached because the account or IP sent too many messages too quickly.
- Policy rejection because the provider flagged the login or the message pattern as risky.
- Conditional access block because the sign-in came from an untrusted location or device state.
If you administer the server, review the SMTP logs and provider dashboard for the exact rejection code. The difference between a 550, a 553, and a 5.7.x response can save hours. On hosted platforms, the control plane often gives the clearest reason, while the client only shows a generic failure.
For mail administrators, this is where message submission policy becomes more important than raw network access. The server is not just a pipe; it is a gatekeeper.
Firewall, Antivirus, and Proxy Interference
Endpoint security tools are a frequent cause of port 587 trouble because they can inspect, delay, or block SMTP traffic before the server ever sees it. Antivirus software may filter mail protocols, a firewall may block outbound 587, and a proxy may change how the session is negotiated. In office and cloud environments, this is even more likely when the network is locked down to approved egress paths.
SSL inspection proxies are particularly disruptive because they can break STARTTLS handshakes or cause certificate validation to fail. The client thinks it is talking to the mail server, but it is actually talking to the proxy, which then re-signs the connection with a different certificate chain. If the client does not trust the proxy’s certificate authority, the handshake fails.
Warning
Do not permanently disable antivirus, SSL inspection, or certificate verification on a production system. Use temporary, controlled testing only, then restore the security control.
If the user is on a VPN, also check split-tunnel rules and policy-based routing. A VPN can force SMTP traffic through a different path than web traffic, which makes “the internet works” a misleading observation. The fix may be as simple as adding an outbound exception or adjusting the security appliance to allow port 587.
In controlled troubleshooting, you want to know whether the problem follows the host, the network, or the security stack. That distinction is what makes smtp submission troubleshooting efficient instead of random.
Testing and Diagnosis Tools
OpenSSL s_client is one of the best tools for testing STARTTLS on port 587 because it shows the handshake, certificate chain, and server banner. A common test looks like openssl s_client -starttls smtp -connect smtp.example.com:587 -servername smtp.example.com. If the certificate chain is broken or the server refuses STARTTLS, you will see it immediately.
Telnet and netcat are simpler tools for checking raw reachability and banner behavior. Telnet confirms that the port is open and lets you see the SMTP greeting. Netcat does the same thing with less overhead on many systems. If you receive the banner but cannot proceed past STARTTLS, the issue is likely protocol negotiation rather than basic connectivity.
- Run a raw port test with
Test-NetConnection,nc, ortelnet. - Run
openssl s_client -starttls smtpto inspect TLS and certificate details. - Compare the result with the mail client’s behavior using the same hostname and port.
- Use Wireshark to inspect TLS alerts, resets, and server response codes if the failure remains unclear.
- Retest from a second device and a second network to isolate environment-specific issues.
Mail client diagnostics can also help. Many clients expose a connection log or status window that shows whether the failure happened during DNS lookup, TCP connect, STARTTLS negotiation, or AUTH. Those logs are often more useful than a generic popup error, especially when the provider gives vague text to end users.
If you are following the networking track in Cisco CCNA v1.1 (200-301), this is exactly the kind of layered fault isolation the exam expects you to understand. The tools change, but the workflow stays the same.
Provider-Specific Scenarios and Known Quirks
Different providers apply different submission rules, even when the client experience looks the same. Microsoft 365 may require SMTP AUTH to be enabled for the mailbox or tenant, while Google Workspace may route mail differently depending on whether you use authenticated submission or an SMTP relay service. cPanel, Postfix, Exchange, and hosted SMTP services each have their own rules for authentication, sender identity, and TLS requirements.
One common issue is that the provider blocks SMTP from suspicious geographies, unknown devices, or unusual login patterns. Another is that the account works in webmail but not in a desktop client because the provider wants modern authentication instead of a plain password. For legacy servers, you may also see older TLS expectations, custom relay rules, or nonstandard submission behavior that only appears in on-premises environments.
- Microsoft 365: SMTP AUTH may be disabled at the tenant or mailbox level.
- Google Workspace: SMTP relay and authentication settings can differ by use case.
- Postfix: Submission service, relay policy, and SASL auth must align.
- Exchange: Connector configuration and authentication method determine access.
- Hosted SMTP services: IP reputation and sender verification often matter more than the client thinks.
The correct move is to check the provider’s documentation for the exact submission host, port, and authentication method. Official documentation is always more reliable than forum guesses, especially when the provider recently changed its security defaults. For Microsoft documentation, use Microsoft Learn; for Linux mail stack behavior, the relevant vendor and project docs are the best source.
At a higher level, this is where CISA guidance on secure configuration and least privilege lines up with real mail operations: the more restrictive the platform becomes, the more important exact configuration becomes.
Step-by-Step Troubleshooting Workflow
The fastest way to solve port 587 issues is to move from the outside in: connectivity first, then authentication, then TLS, then server policy. This prevents the common mistake of blaming passwords before you know whether the host is reachable or whether the client is even speaking the right protocol.
- Verify DNS and connectivity. Confirm the hostname resolves and the port responds from the same device and network that is failing in the client. If this fails, fix the network or name resolution first.
- Confirm client settings. Check hostname, port 587, and STARTTLS. Make sure the mail app is not using implicit TLS on the wrong port or pointing to the wrong server.
- Test credentials. Re-enter the username and password or app password. If the provider supports modern authentication only, sign in again or generate the correct credential type.
- Validate TLS. Use OpenSSL or the client log to confirm certificate trust, hostname matching, and protocol negotiation. Fix time, trust chain, or client version issues if the handshake fails.
- Check server policy. Review relay denial messages, sender restrictions, rate limits, and mailbox-level SMTP AUTH settings. Look for 5.7.x or similar policy rejections in the server logs.
- Change one variable at a time. Retest after each change and record the result so you do not create a new problem while solving the original one.
- Escalate with evidence. Send support the exact error text, timestamps, client version, server hostname, test results, and any log excerpts.
A disciplined workflow is more reliable than guessing because each failed test removes one layer from the problem. That is how you distinguish a blocked network from a bad password, or a bad certificate from a relay rule. The goal is not to try everything. The goal is to identify the layer that breaks first.
Key Takeaway
- Port 587 is the standard authenticated SMTP submission port, and it usually requires STARTTLS plus valid credentials as of October 2026.
- A successful TCP connection does not prove mail submission works; authentication, TLS, and relay policy can still fail separately.
- The most useful first tests are DNS resolution, port reachability, and a direct STARTTLS check with OpenSSL.
- Provider-side restrictions such as SMTP AUTH settings, sender rules, rate limits, and conditional access often cause “mysterious” failures.
- The fastest fix comes from changing one variable at a time and recording the exact error message and server response.
Best Practices to Prevent Future Port 587 Problems
The best way to avoid recurring port 587 issues is to standardize your mail submission settings and keep them current. Update clients and libraries regularly so they support modern TLS versions and current authentication methods. Old mail software can work fine for months and then fail the moment a provider retires legacy login or tightens cipher requirements.
Store credentials securely and rotate them when policy changes. If your environment uses service accounts, document the exact username, sender aliases, relay host, and authentication method for each app. That documentation matters when a team member leaves, a password expires, or a provider switches to modern authentication.
- Keep mail clients updated so they support current TLS and auth standards.
- Use secure credential storage and rotate secrets when access policies change.
- Standardize SMTP settings across teams and devices to reduce drift.
- Monitor failures in logs, dashboards, and alerting systems before users report them.
- Document provider rules for sender identity, relay access, and submission hostnames.
It also helps to monitor logs for authentication failures, policy rejections, and certificate warnings. Those events usually appear before a full outage, which gives you time to fix the cause rather than react to a flood of failed messages. In regulated or security-conscious environments, that kind of early warning is not optional.
For operational consistency, this is where NIST guidance on secure configuration and identity protection aligns with real-world mail administration. Tight controls are easier to manage when the settings are documented and the troubleshooting path is standardized.
How to Verify It Worked
You know the fix worked when the client connects, authenticates, and submits mail without fallback errors. The simplest sign is a successful send with no certificate warnings, no authentication prompts, and no relay denied response. If possible, verify the message arrived in the destination mailbox and check the mail headers for the expected submission route.
Use at least two verification methods. First, send a test message from the same client and network that was failing. Second, repeat the test from another network or another client if the original problem was intermittent. This confirms the issue is actually resolved and not just temporarily masked.
- Confirm the client connects to the correct hostname on port 587.
- Confirm STARTTLS negotiates without certificate or protocol errors.
- Confirm authentication succeeds without repeated prompts or 535 errors.
- Confirm the server accepts the message and does not return relay or policy errors.
- Confirm the message is delivered and visible in the recipient mailbox.
Common success indicators include a clean server response, a sent-item record in the client, and no new warnings in the mail or security logs. Common failure symptoms that mean you are not done yet include recurring login prompts, delayed delivery, or messages that vanish after submission. If those symptoms remain, continue testing one layer at a time until the failure point is gone.
If you are supporting a business mail environment, a clean verification should be documented. That gives the help desk, server team, and security team the same baseline for future incidents. It also makes recurring problems easier to compare against known-good behavior.
Authoritative References and Further Reading
Use official and standards-based sources when you need exact behavior for submission ports, TLS, and provider rules. The documents below are the most useful starting points for troubleshooting, policy review, and implementation checks.
- RFC 6409 for message submission behavior on port 587.
- RFC 8314 for secure email submission and transport guidance.
- Microsoft Learn for Microsoft 365 SMTP AUTH and mail flow documentation.
- NIST for secure configuration and identity-related guidance.
- CISA for security best practices and defensive configuration guidance.
- Wireshark for packet-level inspection of TLS negotiation and server replies.
- OpenSSL for STARTTLS and certificate validation testing.
If you are building or supporting a secure mail transfer setup in production, those sources are more reliable than forum answers or generic blog posts. They also map well to how IT teams actually troubleshoot: verify the standard, verify the provider rule, then verify the client.
Cisco CCNA v1.1 (200-301)
Learn essential networking skills and gain hands-on experience in configuring, verifying, and troubleshooting real networks to advance your IT career.
Get this course on Udemy at the lowest price →Conclusion
Most port 587 problems come down to five things: network blocking, client misconfiguration, authentication failure, TLS or certificate mismatch, and server-side relay restrictions. Once you identify which layer fails first, the fix usually becomes straightforward. That is why a structured smtp submission troubleshooting process saves more time than random changes ever will.
Start with reachability, move to authentication, check encryption, then review policy. That sequence works whether you are fixing a desktop mail app, an application server, or a hosted mailbox. In practice, most port 587 submission problems can be resolved quickly once the failure layer is identified.
For teams building stronger networking skills, this is a good example of why port-level knowledge matters. If you are working through Cisco CCNA v1.1 (200-301) content, use this scenario to practice layered diagnosis, log reading, and controlled testing.
CompTIA®, Cisco®, Microsoft®, AWS®, EC-Council®, ISC2®, ISACA®, and PMI® are trademarks of their respective owners.
