Most mail client setup wizards ask for a name, an address, and a password, then guess the rest. That guess is where broken configurations come from: a client tries IMAP on port 143, fails, falls back to POP3 on 110, and the user ends up with a half-working account that downloads some mail and ignores the rest. The fix is sequencing. Decide the protocol, set the ports, prove authentication from a terminal, and only then touch the GUI. Doing it in that order turns a vague “mail is broken” into a specific, fixable error.
Pick the protocol before the client touches a port
IMAP vs POP3 is not a preference question. It is an architecture question, and the answer should be settled before any configuration screen opens. IMAP (Internet Message Access Protocol) keeps mail on the server and synchronizes folders and read states across devices. POP3 (Post Office Protocol version 3) downloads mail to a single client and, by default, treats the server as a temporary holding pen.
The practical test is simple. Count the devices and tools that need to see the same mailbox. A human reading mail on a phone, a laptop, and a browser tab needs IMAP. A script that pulls messages once, parses them, and never looks back is fine on POP3. SEO automation tools default to POP3 for exactly that reason: they want a fast, single-tool retrieval of whatever is sitting in the inbox, not a persistent folder tree.
That default has a cost. POP3 supports inbox only. If a crawler alert lands in a filter-created folder, a POP3 client will never see it. IMAP exposes the full folder structure, including read and flagged states, which matters when a human and an automation tool share the same address. Choose IMAP when the mailbox is a shared workspace and POP3 when it is a one-way pipe into a single script.
Single-device retrieval versus shared state
There is a middle path worth naming. Point the automation tool at POP3 and the human at IMAP, but only if the POP3 client is configured to leave messages on server. Otherwise the first download removes mail from the inbox and the IMAP user watches messages vanish. Most clients label this “leave a copy on the server” or “leave messages on server”; find it before the first fetch, not after.
For project work, catch-all email domains make this easier to manage. A service like AllMail provides catch-all domains for projects, so each project can have its own address with its own retrieval policy. One address feeds a POP3 scraper, another stays on IMAP for a person, and neither interferes with the other.
Set incoming and outgoing ports with TLS in mind
Ports are where most misconfigurations actually live. The incoming mail server and the outgoing mail server are separate services with separate port conventions, and clients often conflate them. Get the numbers right before entering credentials.
| Service | Protocol | Port | Security | Notes |
|---|---|---|---|---|
| Incoming | IMAP | 993 | Implicit TLS | Encrypted from the first byte; the default choice |
| Incoming | IMAP | 143 | STARTTLS | Plain start, upgraded; only if 993 is blocked |
| Incoming | POP3 | 995 | Implicit TLS | Standard for POP3 over SSL |
| Incoming | POP3 | 110 | STARTTLS | Legacy; avoid unless required |
| Outgoing | SMTP | 587 | STARTTLS | Submission port; authenticate here |
IMAP uses encrypted port 993 and POP3 uses encrypted port 995. Those are the numbers to try first, and in most hosted environments they are the only ones that will work. SMTP handles sending mail and belongs on port 587 with STARTTLS, which upgrades a plain connection to an encrypted one after the initial handshake. Port 465 (implicit TLS submission) still appears in older documentation and some providers, but 587 is the safer default.
Two failure modes account for a large share of support tickets. The first is a client set to STARTTLS on port 993 or 995, which produces a handshake error because the server expects TLS immediately. The second is the reverse: implicit TLS selected on port 143 or 110, which hangs until timeout. Both look like “wrong password” in a GUI. Neither is.
Where SMTP fits and why it fails separately
Incoming and outgoing servers fail independently, and users rarely notice which one broke. Mail arrives but nothing sends: that is SMTP. Nothing arrives but sent items leave fine: that is IMAP or POP3. Isolating the direction of failure, as in IMAP vs POP3 for SEO software, narrows the port and credential check to one service instead of two.
SMTP also has its own authentication rules. Many providers require the full email address as the username, some require an app-specific password when two-factor authentication is enabled, and a few restrict sending until the domain is verified. None of that shows up as a port problem, but it surfaces in the same test step described below.
Test authentication with openssl before the GUI
This is the step most tutorials skip, and it is the one that saves the most time. Before typing credentials into a client, open a raw TLS session to the server and try the login by hand. A GUI hides the server’s response; a terminal shows it verbatim.
- Open a TLS connection to the incoming server: openssl s_client -connect mail.example.com:993 -crlf -quiet for IMAP, or port 995 for POP3.
- Read the greeting. IMAP sends an untagged * OK line; POP3 sends +OK. A certificate error or a silent hang means the port or TLS mode is wrong.
- Log in with the protocol’s own command: a1 LOGIN user@example.com password for IMAP, USER then PASS for POP3.
- Check the tagged response. a1 OK means credentials and encryption are correct. a1 NO means bad credentials; a connection reset usually means the provider blocked the IP or requires an app password.
- Repeat against SMTP on port 587 with openssl s_client -connect mail.example.com:587 -starttls smtp, then issue EHLO and AUTH LOGIN.
When that session succeeds, the GUI configuration is almost guaranteed to work, because the only remaining variables are client-side. When it fails, the error message names the actual problem: certificate mismatch, wrong port, rejected password, or a provider that disables plain authentication entirely. Debugging moves from guesswork to reading.
The same test confirms which protocol version the server speaks. Modern servers advertise IMAP4rev2, defined by RFC 9051, which supersedes the older IMAP4rev1 specification. POP3 remains governed by RFC 1939. Capability lines from the terminal session show exactly what the server supports, including whether it offers IDLE, which affects how quickly a client sees new mail.
Enter credentials in the client and verify sync behavior
With protocol, ports, and authentication confirmed, the client configuration becomes mechanical. Enter the address, the same password that worked in the terminal, the incoming server with port 993 or 995, and the outgoing server with port 587 and STARTTLS. Disable any “auto-detect” option the client offers; it will re-guess and may undo the correct settings.
Then verify behavior, not just connectivity. For IMAP, read a message on one device and confirm the read state propagates to another within a minute or two. Create a folder and check that it appears on the server side. For POP3, send a test message to the inbox and confirm the client retrieves it, then check whether the server copy remains if that was the intent.
Watch for a few client-specific traps. Some clients default new accounts to POP3 even when IMAP is available, so the protocol dropdown deserves a second look. Others silently switch to unencrypted ports when the TLS handshake fails, which is worse than a visible error. A few apply a send-only configuration to the SMTP server and never authenticate, which works until the provider enforces submission authentication.
The order matters because each step eliminates a class of error. Protocol choice settles architecture. Port selection settles transport. The terminal test settles credentials and certificates. By the time the GUI opens, every remaining failure is a client setting, and those are visible on one screen. Skipping the terminal step does not save time; it moves the debugging into a place where the server’s own words are hidden.
Keep a short record of what worked: protocol, ports, TLS mode, username format, and whether an app password was required. The next account, the next migration, or the next automation tool will need the same five facts, and a note beats rediscovering them at 2 a.m. The AllMail blog covers provider-side quirks that affect these settings, and the terminal test above will confirm whichever details apply to a given host.