SMTP Test: Check Your SMTP Server Connection and Login Online
Enter your SMTP host, port, encryption and login. mailX connects to the server, checks the encryption and the login, and can send a real test email to the address you choose.
Results
- Free SMTP test
- Optional test email
- Credentials not stored
What does this SMTP test check?
Everything that has to work before an app, a CRM or a website can send email.
Server reachable
mailX resolves the host and opens a connection on your port. If it fails, the host or port is wrong, or the port is blocked.
Encryption
The SSL or TLS handshake must succeed with the encryption you selected: SSL on port 465, TLS (STARTTLS) on port 587.
SMTP authentication
The server must accept your username and password, or the API key that a sending service uses as a password.
Real test email
Add a From and a To address and mailX sends a test message through your server, so you can check it arrives.
Step that failed
Each failure tells you whether the connection, the encryption or the login failed.
Any SMTP server
Gmail, Microsoft 365, Yahoo, Zoho, hosting providers, SendGrid, Mailgun, Amazon SES, Brevo or your own server.
How to test an SMTP server
Five steps to confirm that sending works before you go live.
Get the SMTP settings
Find the host, port and login rules of your provider or sending service. The SMTP server finder gives them for 40+ services.
Enter host, port and encryption
Use port 587 with TLS (STARTTLS) by default, or 465 with SSL. Avoid port 25: most networks block it for outgoing mail.
Enter the credentials
Use the full email address for mailbox providers, with an app password where required. For sending services, use their SMTP username and API key or SMTP key.
Optionally send a test email
Fill in From and To to send a real message. Send it to a mailbox you can check, then look at where it lands.
Read the result
A success means your app can use the same settings. A failure tells you which step to fix.
What an SMTP test tells you
SMTP (Simple Mail Transfer Protocol) is how apps and email clients hand messages to a server for delivery. To send, three things must work in order: the connection to the server, the encryption, and the authentication. The test checks each step and stops at the first failure, so you know where to look.
Ports and encryption must match. Port 587 is the submission port and switches to encryption with STARTTLS. Port 465 uses implicit SSL/TLS from the first byte. Port 25 is for server-to-server delivery and is blocked for outgoing mail by most ISPs and cloud providers. Some sending services also offer port 2525 when the standard ports are blocked.
A successful login proves your settings are right. It does not prove your emails will reach the inbox. That depends on SPF, DKIM and DMARC for your domain, and on your sending reputation. Send the test email to a mailbox you control to see where it lands.
Settings that pass for most providers:
Port 465 + SSL
Port 2525 + TLS, with sending services that offer it
What the test returns:
Connection successful, email sent: the test message was accepted
Authentication failed: the server refused the login
SSL failed: wrong encryption for this port
Connection failed: wrong host or port, or a blocked port
General error: an unexpected problem, run the test again
Related mailX tools
Find the right settings and protect your deliverability.
Why your SMTP test fails
The usual causes, by the step that failed.
Authentication failed with the right password
Gmail, Yahoo, AOL and iCloud refuse your normal password in apps: use an app password. Microsoft 365 needs SMTP AUTH enabled for the mailbox, and from the end of December 2026 Microsoft turns off password authentication for SMTP AUTH by default, so the test only works if your admin turns it back on. Outlook.com requires OAuth2.
Wrong credentials for a sending service
SendGrid expects the username apikey and your API key as the password. Brevo needs an SMTP key. Amazon SES needs SMTP credentials generated for the right region.
SSL failed
The port and the encryption do not match. Use 587 with TLS or 465 with SSL.
Connection failed or timed out
The host is wrong, or the port is blocked by your network or your cloud provider. Port 25 is the usual victim. Try 587, or 2525 with a sending service.
Test email not received
The server accepted the message but it was filtered or rejected later. Check the spam folder, then check SPF, DKIM and DMARC for the From domain.
From address refused
Many servers only let you send from the address or domain you authenticated with. Use a From address the account is allowed to send as.
SMTP troubleshooting guides
When the test fails, start here.
SMTP Connection Timeout
Blocked ports, firewalls and wrong hosts: how to find what stops the connection.
SMTP Error Codes Explained
What 421, 450, 550, 553 and 554 mean and how to fix them.
Fix Relay Access Denied 554 5.7.1
Why the server refuses to relay your message and how to authenticate correctly.
Is it safe to test SMTP with my password?
The test needs real credentials, because authentication is the step that fails most often. mailX uses them to run the test and does not store them.
Use an app password or a dedicated SMTP key when your provider offers one: you can revoke it at any time without touching your main password. For a production account, a separate test key is the cleanest option.
You can also check the connection yourself from a terminal with OpenSSL. On port 465, the server should answer with a line starting with 220. With -starttls smtp, OpenSSL reads that greeting itself: type EHLO test and the server should answer with lines starting with 250.
Test port 587 with STARTTLS:
Test port 465 with SSL:
Reading your SMTP test results
What each result means and what to do next.
Connection successful
Host, port, encryption and login are correct. Use the same settings in your app, then send a test email to check delivery.
Authentication failed
The server works but refused the login. Check the username, then use an app password, an SMTP key or enable SMTP AUTH.
Connection or SSL failed
Fix the host, port or encryption first. The SMTP server finder gives the right values for your provider.
Your SMTP works. Will your emails land in the inbox?
Sending is only half the job. Check that SPF, DKIM and DMARC pass for your domain, in one free test.