IMAP Test: Check Your IMAP Server Connection and Login Online
Enter your IMAP host, port, encryption and login. mailX connects to the server and tells you whether it answers, whether the encryption works and whether it accepts your credentials.
Results
- Free IMAP test
- Result in seconds
- Credentials not stored
What does this IMAP test check?
The three things that have to work before your email app can read a mailbox.
Server reachable
mailX resolves the host name and opens a connection on the port you entered. If it cannot, the host or the port is wrong, or a firewall blocks it.
Encryption
The SSL or TLS handshake must succeed with the encryption you selected. A mismatch between port and encryption is the most common cause of failure.
Login accepted
The server must accept your username and password. A refusal here usually means an app password or OAuth is required.
Clear error message
Each failure tells you which step failed: connection, encryption or login.
Any password-based IMAP server
Works with any IMAP server that accepts a password login: Gmail and Yahoo (with an app password), iCloud, Zoho, hosting providers and your own server. For Microsoft 365 and Outlook.com, only the connection can be tested.
Before you configure an app
Check settings once here before you enter them in Outlook, Apple Mail, Thunderbird, a CRM or a helpdesk.
How to test an IMAP connection
Five steps from settings to a working mailbox.
Get the IMAP settings
Find the host, port and encryption of your provider. If you do not know them, the IMAP server finder gives them for 30+ providers.
Enter host and port
Type the host name (for example imap.gmail.com) and the port. Use 993 with SSL in almost every case.
Choose the encryption
Pick SSL for port 993. Pick TLS for port 143 if your provider uses STARTTLS. Only pick None on a private test server.
Enter the login
Use the full email address as the username in most cases. Where the provider requires it, use an app password instead of your normal password.
Run the test and read the result
A success means your app can use the same settings. A failure tells you which step to fix: connection, encryption or login.
What an IMAP test tells you
IMAP (Internet Message Access Protocol) is how email apps read a mailbox that stays on the server. Before an app can sync anything, three things have to work in order: the connection to the server, the encryption of that connection, and the login. An IMAP test checks those three steps and stops at the first one that fails, so you know exactly where the problem is.
Port 993 uses implicit SSL/TLS: the connection is encrypted from the first byte. Port 143 starts unencrypted and must switch to TLS with the STARTTLS command. Selecting SSL on port 143, or TLS on port 993, is enough to make the test fail even when every other setting is right.
This test checks access to the mailbox. It does not check whether your emails reach the inbox: that depends on SPF, DKIM and DMARC on the sending side.
Settings that pass for most providers:
Port 143 + TLS (STARTTLS), only if your provider documents it
What the test returns:
Authentication failed: the server answered but refused the login
SSL/TLS failed: wrong encryption for this port
Connection failed: wrong host or port, or a firewall
General error: an unexpected problem, run the test again
Related mailX tools
Find the right settings, then test the sending side too.
Why your IMAP 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 third-party apps. Create an app password. Outlook.com and Microsoft 365 require OAuth2, which a password-based test cannot use.
IMAP not enabled
Outlook.com, GMX, Zoho and some hosting mailboxes require you to switch on IMAP access in the mailbox settings. In Microsoft 365 and Google Workspace, an admin can disable it.
SSL/TLS failed
The port and the encryption do not match. Use 993 with SSL, or 143 with TLS. Some servers also refuse old TLS versions.
Connection failed
The host name is wrong, the port is closed, or a firewall blocks it. Check the host with the IMAP server finder and try port 993.
Wrong username format
Most providers want the full email address. iCloud uses the name before @icloud.com. Some hosts want a separate account name.
Too many attempts
After several failed logins, some providers block the account or the IP for a while. Wait, then test again with the right password.
IMAP troubleshooting guides
When the test fails, start here.
IMAP Server Not Responding
How to diagnose an IMAP server that times out or refuses the connection.
How to Fix IMAP Errors
Connection, login and sync errors explained, with the fix for each one.
How to Fix Email Sync Issues
Why emails do not sync across devices and how to fix it.
Is it safe to test IMAP with my password?
The test needs real credentials, because the login step is what most people need to check. mailX uses them to run the test and does not store them.
Good practice still applies. Use an app password when your provider offers one: it only works for email apps, and you can revoke it at any time without changing your main password. For a shared or production mailbox, test with a dedicated mailbox first, and change the password afterwards if you entered it on a computer you do not trust.
You can also run the same check yourself from a terminal with OpenSSL. On port 993, the server should answer with a line starting with * OK. With -starttls imap, OpenSSL handles the greeting itself: type a1 CAPABILITY and the server should answer with a line starting with * CAPABILITY.
Test an IMAP connection on port 993:
Test STARTTLS on port 143:
Reading your IMAP test results
What each result means and what to do next.
Connection successful
Host, port, encryption and login are all correct. Use the same settings in your email app.
Authentication failed
The server works but refused the login. Check the username format, then use an app password or enable IMAP in the mailbox settings.
Connection or SSL failed
Fix the host, port or encryption first. The IMAP server finder gives the right values for your provider.
IMAP works. Do your emails reach the inbox?
A working mailbox does not mean good deliverability. Check SPF, DKIM and DMARC for your domain in one free test.