If you searched for telnet smtp, this is the fastest diagnostic sequence:
- verify basic SMTP connectivity
- verify TLS with OpenSSL
- validate auth and envelope commands
- run inbox and deliverability checks
Quick answer: should you still use Telnet for SMTP?
Yes for first-pass diagnostics. Telnet is useful for plain connectivity and protocol responses, but it is not encrypted. For secure checks, use OpenSSL with STARTTLS.
Basic SMTP connectivity test with Telnet
telnet smtp.example.com 25
If the connection works, you should see an SMTP greeting such as:
220 smtp.example.com ESMTP ready
Then test command flow:
EHLO test.local
MAIL FROM:<sender@example.com>
RCPT TO:<recipient@example.com>
QUIT
Useful response patterns:
220: service ready250: accepted4xx: temporary issue5xx: permanent failure (auth/policy/config)
TLS check with OpenSSL (recommended)
For authenticated submission flows, test STARTTLS on port 587:
openssl s_client -starttls smtp -connect smtp.example.com:587
After TLS negotiation, run:
EHLO test.local
Confirm advertised capabilities such as STARTTLS and AUTH.
Related references:
Common SMTP troubleshooting patterns
Cannot connect to SMTP host
Likely causes:
- wrong hostname or port
- blocked outbound firewall or VPC egress
- provider network restrictions
STARTTLS fails
Likely causes:
- TLS mismatch for selected port
- certificate chain or trust issues
- middlebox/network interference
535 auth failure or 550 relay rejection
Likely causes:
- incorrect credentials
- sender identity policy mismatch
- relay restrictions for account/domain
Use Telnet/OpenSSL as step one, not final validation
Protocol checks do not confirm inbox placement or template correctness.
Follow with:
Release checklist after SMTP connectivity tests
- Verify SMTP connectivity and capability responses.
- Verify TLS and auth posture with OpenSSL.
- Validate end-to-end delivery and content in real inbox tests.
- Add webhook-based observability for bounce and failure events.
- Re-run checks after DNS or provider config changes.
FAQ
Is Telnet secure for SMTP testing?
No. Telnet is plaintext and best used only for low-risk connectivity checks. Use OpenSSL for TLS validation.
Should I test SMTP on port 25 or 587?
Port 587 is usually preferred for authenticated client submission. Port 25 is commonly restricted in cloud environments.
Why does SMTP test pass but users still do not receive email?
Connectivity success does not guarantee inbox placement. Run deliverability and inbox-based integration tests.