When a user says mail “disappeared” or a folder shows up on their phone but not their laptop, the messages are almost always still safe on the server — what is wrong is how a client is viewing them. On a cPanel mailbox the usual causes are one device set to POP3 (which downloads and may delete messages, so other devices never see them), folders the client has not subscribed to, a client that filed mail into a local-only folder, or a namespace/prefix mismatch so the client looks for folders in the wrong place. The reassuring first step is to confirm the mail is intact on the server, then fix the client’s view.
What’s happening
IMAP keeps the canonical copy of every message and folder on the server; every client is a synchronized view, so a message read or filed on one device shows the same state everywhere. POP3 is the opposite: it connects, downloads new messages to that one device, and — depending on the “leave on server” setting — often deletes the server copy. So a single POP3 client can silently pull mail off the server before the IMAP clients ever sync it, making messages “vanish” from every other device. This is the most common cause of cross-device mail loss on cPanel.
Even with all clients on IMAP, two things hide mail. First, subscriptions: IMAP lets a client choose which folders to display, and a folder that exists on the server but is not subscribed in a given client simply does not appear there. Second, the folder namespace/prefix: some clients expect folders under an INBOX. prefix and others at the top level; a mismatch means the client cannot find Sent/Drafts/Trash or shows them empty. Finally, a client rule may move mail into a folder stored only on that device (an “On My Computer” / local folder), so it never reaches the server at all. In every case the server-side Maildir tells the truth.
How to verify
First, prove the mail still exists on the server, independent of any client.
# Folders and message counts on disk for the mailbox
ls -la /home/<cpaneluser>/mail/example.com/user/
find /home/<cpaneluser>/mail/example.com/user/ -type d -name cur -exec sh -c 'echo "$(ls "$1" | wc -l) $1"' _ {} \;
Log into Webmail as the user — Roundcube shows the true server-side IMAP view and bypasses every desktop client:
# https://example.com/webmail → if the mail and folders are here,
# the server is fine and a client is the problem.
Check whether any device is using POP3 (the prime suspect for vanishing mail):
# POP3 sessions in the log reveal a device downloading/deleting
grep -i 'pop3' /var/log/maillog | grep 'user@example.com' | tail -20
# IMAP vs POP3 connections side by side
grep 'user@example.com' /var/log/maillog | grep -iE 'imap|pop3' | tail -30
Confirm the server’s IMAP namespace so client folder settings can match it:
# Dovecot namespace/prefix configuration
doveconf namespace 2>/dev/null | grep -iE 'prefix|separator|inbox'
grep -ri 'namespace' /etc/dovecot/ 2>/dev/null | grep -i prefix
The fix
-
Switch every device from POP3 to IMAP — the fix that stops mail vanishing. If the log shows POP3 sessions, that device is pulling mail off the server. Reconfigure it as IMAP using the settings from cPanel » Email Accounts » Connect Devices. If POP3 must stay on a device, at minimum enable “leave a copy on the server” so it stops deleting — but IMAP everywhere is the correct answer.
-
Recover mail a POP3 client already downloaded — messages a POP3 device deleted from the server now live only on that device. Export them from that client and re-upload (drag into an IMAP folder, or use a migration tool) so they return to the server and sync to the others.
-
Subscribe to the missing folders — if a folder exists in Webmail but not in a desktop client, the client is not subscribed. In the client’s folder/subscription settings, subscribe to the folders (or enable “show all folders”). This is purely a per-client display choice and changes nothing on the server.
-
Match the client’s folder prefix to the server namespace — if Sent/Drafts/Trash are missing or empty in a client, the IMAP path prefix is wrong. Set the client’s “IMAP path prefix” to match the server (commonly
INBOXwhen Dovecot uses anINBOX.namespace, or blank when folders are top-level), and map the special folders to the server’s Sent/Drafts/Trash. -
Find mail filed into a local-only folder — if a client rule moved mail to an “On My Computer”/local folder, it never reached the server. Locate that local folder in the client and drag the messages into a server IMAP folder so they sync everywhere.
-
Rebuild a corrupt Dovecot index if counts look wrong — if the on-disk
curdirectories show messages but a client (and Webmail) show fewer, the Dovecot index may be stale. Force a reindex by removing the index files for that mailbox so Dovecot rebuilds them on next access; the messages incur/neware the source of truth. -
Confirm quota is not silently dropping new mail — if new messages stop appearing on all devices, the mailbox may be over quota and rejecting inbound. Check
quota/duand raise the limit in cPanel » Email Accounts » Manage » Storage Space if needed.
After moving everything to IMAP and fixing subscriptions, open two devices and confirm a message read on one marks read on the other — that round-trip proves the synchronized view is healthy and nothing is being pulled off the server. The mail was almost never lost; it was being viewed inconsistently. Stack Harbor resolves cPanel IMAP and Dovecot sync issues under cPanel server management — start a conversation.