Live rates
USD/EUR 0.9122 −0.22% USD/GBP 0.7635 −0.19% USD/JPY 159.07 +0.00% USD/CHF 0.8376 −0.25% USD/CNY 6.6645 −0.00% USD/CAD 1.4327 −0.24% USD/AUD 1.5057 −0.37% USD/SEK 10.2353 −0.37% BTC/USD 59,741 −2.45% ETH/USD 1,678 −1.80%
Uncategorized 6 min read

Two Settings That Make an Account Safe for Automation

Most automation failures I get called in to debug are not code bugs. They are mail client settings. A POP3 account with the wrong delete policy quietly empties a shared inbox, or an IMAP client without IDLE support polls a folder that another worker already drained, and suddenly you have duplicate tickets and lost replies. The fix is usually two checkboxes. This checklist treats “leave messages on server” for POP3 and “IDLE support” for IMAP as separate, mandatory line items, because those two settings decide whether an account survives concurrent automation use. Skip either one and you get message loss or duplicate processing, no matter how clean your code is.

Start with the protocol decision and the ports it implies

Before touching client options, decide which protocol the mailbox will speak. IMAP keeps mail on the server and synchronizes folders and read states across devices, which is what you want when a human and a script share the same inbox. POP3 downloads mail to a single client and supports inbox only, so it suits pipelines where one worker owns the mailbox end to end. SMTP handles sending mail and is a separate configuration from whichever protocol you pick for retrieval. Confusing the incoming mail server with the outgoing mail server is the first place people go wrong.

Ports are part of the checklist, not an afterthought. IMAP uses encrypted port 993, and POP3 uses encrypted port 995. Plain-text ports 143 and 110 exist, but for automation credentials crossing a network, insist on the encrypted variants or STARTTLS upgrades if you must use the classic ports behind a proxy. For IMAP specifically, IMAP4rev2 is defined by RFC 9051, and older servers follow the IMAP4rev1 line. POP3 dates to RFC 1939 and has barely changed since, which is exactly why its client-side settings matter so much: the protocol pushes state to the client, so the client decides what happens to the mail afterward.

Here is the practitioner take: POP3 for SEO automation is a common default because these tools treat the inbox as a stream of verification links and reports, and POP3’s download-and-process model maps neatly onto that. The danger is that the same default gets applied to a shared mailbox without anyone checking the delete policy. Pick the protocol per mailbox, write it down, and verify the port matches the transport you documented.

The POP3 line item: leave messages on server, with a retention rule

POP3 downloads mail to a single client, and by default many clients delete the server copy after a successful retrieval. That is fine for a personal mailbox on one laptop. It is catastrophic when a second process, a human reviewer, or a fallback client also reads the account. The moment the first client deletes, every other reader sees an empty inbox, and there is no recovery path because POP3 has no folder model to fall back on. The setting that prevents this is “leave messages on server,” and it belongs on your checklist as its own line with a named owner.

Turning it on is half the job. The other half is a retention rule. Because of the difference between IMAP and POP3, POP3 supports inbox only, so a mailbox left on the server grows without structure: no folders, no archive, no read-state. Set a deletion window (7, 14, or 30 days depending on your reprocessing needs) and confirm the client honors it. Check the client’s advanced options for “remove from server after N days” and “remove when deleted from local trash,” because some clients expose both and they interact badly. If your tool exposes only a boolean, pair it with a server-side rule or a scheduled cleanup job. Also confirm the client is not set to leave a copy and then re-download the same messages on every poll; UIDL handling varies, and a client that ignores unique IDs will duplicate everything.

The reason this deserves a dedicated checklist item rather than a footnote: it is the single setting that determines whether a POP3 account is safe for concurrent automation use. A POP3 mailbox with leave-on-server enabled and a sane retention window behaves predictably. The same mailbox with the default delete policy will lose messages the first time two workers overlap. If you need cross-device visibility, catch-all routing, or shared folders, use a provider that gives you those features and consider AllMail, which provides catch-all domains for projects, so each automation gets its own address instead of fighting over one inbox.

The IMAP line item: IDLE support and the sync behavior that follows

IMAP keeps mail on the server and synchronizes folders and read states across devices, which makes it the safer choice for shared mailboxes. That safety depends on one capability: IDLE. A client that supports IDLE holds a connection open and receives new-message notifications as they arrive. A client without IDLE falls back to polling on a fixed interval, and polling is where duplicate processing is born. Two workers polling the same folder every 60 seconds will both see the same unread message, both fetch it, and both act on it. The first one marks it read; the second already has a copy in memory.

Verify IDLE support explicitly in the client or library you are using. In Python, imaplib does not expose IDLE directly; you need a wrapper or the IDLE extension. In Node, most IMAP libraries support it but require you to opt in and handle reconnects. Test it by sending a message and timing how long it takes for your handler to fire. Sub-second means IDLE is working. A delay that matches your poll interval means it is not. Also confirm the server advertises IDLE in its CAPABILITY response; a client with IDLE support talking to a server without it will silently degrade to polling.

Beyond IDLE, check the sync semantics your automation depends on. Does marking a message read in one client propagate to others? Does moving a message to a folder trigger a move event or a copy plus delete? Does your client handle UIDVALIDITY changes after a server migration? These are not exotic edge cases; they happen on provider changes and during restores. Add a line item for “confirm folder sync behavior matches the worker’s assumptions,” and test it with two clients side by side before you trust the pipeline. RFC 9051 defines IMAP4rev2 behavior, and RFC 1939 defines POP3 behavior, so when a client’s docs are vague, the RFC is the tiebreaker.

A configuration checklist that treats “leave messages on server” and “IDLE support” as separate line items catches both failure modes before they reach production. POP3 without the first loses mail. IMAP without the second duplicates it. Neither problem shows up in a single-worker test, which is why both belong on the checklist even when you think the account is simple.