New: mailX now works inside ChatGPT. Try it →
Free IMAP Tester

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 it works

How to test an IMAP connection

Five steps from settings to a working mailbox.

01

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.

02

Enter host and port

Type the host name (for example imap.gmail.com) and the port. Use 993 with SSL in almost every case.

03

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.

04

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.

05

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 993 + SSL
Port 143 + TLS (STARTTLS), only if your provider documents it

What the test returns:

Connection successful: host, port, encryption and login are correct
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

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.

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:

openssl s_client -connect imap.gmail.com:993 -crlf -quiet

Test STARTTLS on port 143:

openssl s_client -connect imap.example.com:143 -starttls imap -crlf -quiet

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.

IMAP Test FAQ

IMAP test basics

How do I test my IMAP connection?
Enter your IMAP host, port, encryption, username and password in the mailX IMAP test. It connects to the server, checks the encryption and tries to log in, then tells you which step works and which one fails.
What does an IMAP checker test?
It checks that the server is reachable on the port you chose, that the SSL or TLS encryption works with that port, and that the server accepts your username and password.
Can I test IMAP without a password?
You can check that the server answers on port 993 with a command such as openssl s_client, but you need the password to test the login, which is the step that fails most often.

Settings

Which port and encryption should I use?
Use port 993 with SSL. Use port 143 with TLS (STARTTLS) only if your provider documents it. Never use port 143 without encryption on a real mailbox.
What is the difference between SSL and TLS in the test?
SSL here means implicit TLS on port 993: the connection is encrypted from the start. TLS means STARTTLS on port 143: the connection starts in clear text and then switches to encryption.

Errors

Why does the IMAP test say authentication failed?
The server answered but refused the login. The usual causes are a normal password used where an app password is required, IMAP disabled in the mailbox settings, a wrong username format, or a provider that only accepts OAuth2, such as Outlook.com and Microsoft 365.
Why can't the test connect to my IMAP server?
The host name is wrong or does not resolve, the port is closed, or a firewall blocks it. Check the settings with the IMAP server finder and try port 993 with SSL.
Can I test Outlook.com or Microsoft 365 with this tool?
You can check that the server answers, but the login will fail: Microsoft disabled basic authentication for IMAP and requires OAuth2, which a username and password test cannot use.

Security

Does mailX store my IMAP password?
No. The credentials are used to run the test and are not stored. Use an app password when your provider offers one, so you can revoke it at any time.