Connect to the office VPN, open the mail client, and watch the inbox refuse to refresh while webmail loads normally. The usual diagnosis is that the VPN is passing traffic but blocking mail, or that the account password changed. Both guesses skip the structure of what an IMAP client does. Reaching the host, completing TLS, authenticating, and selecting a mailbox are four different events, and the VPN only owns the first.

The myth: one connection means one login

The belief is that once the tunnel is up and the mail server answers, the mailbox is effectively open. It is not. The VPN supplies a path to the service; it does not sign you in, and it does not select a folder. A client can sit at the fourth of those steps with a perfectly working tunnel and a valid password.

That gap is where most "IMAP broken over VPN" reports actually live.

Three IMAP states, and where clients stall

IMAP defines a not-authenticated state, an authenticated state and a selected state, and commands are only valid in the state that permits them. A connection may also start already authenticated when the server offers pre-authentication, so the absence of a password prompt does not prove anything either way. Selecting a mailbox moves the session from authenticated to selected, and only then do commands that act on messages have a target.

A client that authenticates successfully and then fails to select the configured folder will look like a sync failure while the server is behaving correctly. Renamed folders, a provider that maps "inbox" differently, or missing access rights all land here. The server's tagged NO response is the evidence, and it is not the same response as a rejected password.

TLS comes before the IMAP conversation

With implicit TLS on port 993, the TLS handshake completes before any IMAP command is sent, which is why a certificate problem produces an error that mentions trust rather than mail. The mail hostname must validate against the certificate the same way a web hostname does; a tunnel that preserves traffic does not make an invalid certificate valid.

The error text separates the cases. A connection timeout means the SYN never completed. A TLS error means the TCP connection worked and the handshake did not. An IMAP NO or BAD response means both of those succeeded and the protocol layer rejected something. Record which one you saw before changing any setting.

Cached mail is not evidence of anything

A mail client shows previously downloaded messages whether or not it can reach the server today, so an inbox that renders tells you only that local storage works. Any real test has to force a server operation: refresh a folder, fetch a message that was never downloaded, or send a command that the client would only issue after selecting the mailbox.

Use a non-destructive check. Refreshing one folder and reading the account's error log beats deleting and re-adding the account, which mostly proves that the config screen still works.

Sending and webmail are different protocols

Sending mail is submission, not IMAP. It uses a separate service and usually a separate port with its own TLS mode and its own authentication, so a working outbox does not demonstrate that the IMAP mailbox was selected, and a broken outbox does not implicate IMAP.

Webmail is different again. It can succeed over the same VPN because it is an HTTPS session against a web front end, which says nothing about the desktop client's IMAP host, port or TLS mode.

For a handoff, record four results separately: the VPN path, the mail endpoint and TLS result, the account authentication result, and the mailbox selection result. Keep credentials and message contents out of the note. That record tells the next person whether the fix belongs to the network, the certificate, the account or the folder configuration, without weakening either protection layer.

ХӀокхунах тера йаззамаш