Port 465 or 587: Match the Encryption Mode to the Provider

Port 465 or 587: Match the Encryption Mode to the Provider

MailBolt
MailBolt™ Team
Author
2026-08-31
Published
1 min read
Reading Time

You change the SMTP port, leave the encryption setting untouched and get a confusing connection error. A port number and an encryption mode need to be configured as a pair.

Follow the documented endpoint

Providers commonly offer implicit TLS submission on port 465 or submission with STARTTLS on port 587. Use the combination your provider documents. Do not assume that a successful TCP connection means the application and server agree about the next protocol step.

Record the endpoint, port and selected mode without recording the secret. If a firewall blocks one route, confirm that diagnosis before replacing it with another port whose purpose is different.

Keep verification enabled

A certificate error is a reason to inspect the hostname, certificate chain and trust store. Disabling certificate checks can make the test appear successful while removing the assurance that credentials are being sent to the intended server.

After fixing the configuration, test authentication and a full message. Capture the final delivery response and distinguish it from the earlier connection success. Keep a known-good profile so later changes can be compared with a concrete baseline.

Change the setting that the evidence points to. Cycling through ports and encryption modes at random makes a small configuration issue much harder to reproduce.

References

MailBolt
Written by
MailBolt™ Team