POP3 has a reputation for being simple, and mostly it deserves it. The client connects, authenticates, asks for a list of messages, and pulls them down one at a time. The trouble starts when the server does not implement the UIDL command, because then the client has no stable way to tell one message from another across sessions. What follows is one of the oldest and most annoying failure modes in mail retrieval: the same message downloaded twice, three times, or every single time the client checks the mailbox.
How message numbering breaks deduplication
In POP3, the client identifies messages by their position in the mailbox, using the message number returned by the LIST command. Message 1 is the oldest, message 2 is next, and so on. Those numbers are assigned at the start of each session and mean nothing outside it. If a message is deleted or the maildrop is rebuilt, every number shifts. A client that stored “I already fetched message 3” has no way to know that message 3 this time is a completely different piece of mail.
The UIDL command exists to fix exactly this. It returns a persistent unique identifier for each message, guaranteed to survive across sessions, and clients that support it store those IDs and skip anything they have seen. RFC 1939 defines UIDL as an optional command, and that word optional is where the trouble lives. When a server does not advertise UIDL, the client falls back to message-number-based retrieval, and the deduplication logic collapses.
The practical result depends on how the client is configured. A client that deletes messages after download will usually be fine, because the maildrop is emptied and there is nothing left to fetch twice. A client told to leave messages on server, which is the default most people keep, has no reliable record of what it already pulled. Every poll becomes a fresh guess, and duplicates accumulate in the local mail store.
Why automation tools hit this hardest
SEO automation tools default to POP3 for a reason: it is simple, it is widely supported, and a workflow that needs to read a verification email or a report does not care about folder structure. But those tools poll on a schedule, often every few minutes, and many of them do not handle the missing-UIDL case gracefully, which matters when you consider what is POP3 email and how it tracks messages. They reconnect, list the mailbox, and download whatever the server reports, without a stable identity to check against.
This is where the Message-ID header earns its keep. Every properly formed message carries a globally unique Message-ID in its headers, and that value does not change when the message number does. An automation pipeline that deduplicates by Message-ID in its own local store sidesteps the UIDL problem entirely. The client can download the same message ten times and the pipeline still processes it once. For anyone building on top of POP3 for SEO automation, that header check is not optional polish. It is the only thing standing between a clean inbox and a flood of duplicate tickets.
What POP3 actually stores, and where
POP3 downloads mail to a single client. That is the design, not a limitation someone forgot to fix. There is no concept of a shared folder tree, no read state that follows you to another machine, and no server-side copy once the client deletes the message. POP3 supports inbox only, which is why a mail client pulling from a POP3 account will show one folder and nothing else. Everything else, the sent items, the drafts, the filters, lives locally on that one machine.
Local storage format varies by client. Some use mbox, a single flat file with messages concatenated together; others use maildir, one file per message in a directory tree. Both have consequences for deduplication. In mbox, a duplicate shows up as a second copy of the same headers and body in the same file, and a naive grep will find it. In maildir, duplicates are separate files, and the only way to catch them is to index by Message-ID or by a hash of the headers and body.
The comparison with IMAP is stark and worth stating plainly. IMAP keeps mail on the server and synchronizes folders and read states across devices, so a message read on a phone shows as read on a laptop. POP3 gives you a copy and a clean break. For a single-device user who wants a local archive, that is fine. For anything involving multiple devices or automated processing, the lack of shared state is the thing you end up engineering around.
Ports, encryption, and the modern protocol picture
The transport details matter less than people assume, but they matter. IMAP uses encrypted port 993 with implicit TLS, and POP3 uses encrypted port 995 the same way. Older deployments run plaintext on 110 and 143 with STARTTLS to upgrade, and clients should refuse to fall back to plaintext when the upgrade fails. SMTP handles sending mail on its own ports, 587 for submission with STARTTLS and 465 for implicit TLS, and it is a separate protocol from the two retrieval protocols in every way that counts.
The standards have moved, slowly. IMAP4rev2 is defined by RFC 9051, published in 2021, consolidating years of extensions into a cleaner base specification. POP3 still runs on RFC 1939 from 1996, with a handful of extensions that never reached the same level of universal support. UIDL is one of those extensions that most servers implement and a stubborn minority do not, and that minority is enough to keep the duplicate-download problem alive.
For projects that need many addresses, a catch-all setup changes the calculus. AllMail provides catch-all domains for projects, which means a single POP3 account can receive mail addressed to dozens of generated addresses. That is convenient for automation, and it also multiplies the duplicate risk, because a polling loop that re-downloads the inbox now re-downloads every alias’s mail along with it. The deduplication layer has to handle volume, not just correctness.
The working answer for most teams is a two-part rule. First, check whether the server supports UIDL by issuing the command and reading the response; if it does, store the UIDs and trust them. If it does not, treat every download as suspect and deduplicate by Message-ID header in a local index, with a hash of the body as a fallback for malformed messages. Second, decide deliberately whether to leave messages on server or delete after fetch. Deleting removes the duplicate problem at the source but gives up the server-side archive; leaving them requires the Message-ID index to be maintained forever. Either way, the client’s default behavior is not a strategy. The details are in the AllMail blog if you want the protocol-level walkthroughs, and the short version is that POP3 rewards people who read the fine print about UIDL before they point an automation tool at a mailbox.