IMAP IDLE connection dropped: no push notifications / "connection lost" after idle (NAT or firewall timeout)

IMAP IDLE connections silently die after minutes, so new mail doesn't arrive instantly or the client reconnects constantly.

Exact message you may see IMAP IDLE connection droppedIMAP IDLE timeout push notifications not workingConnection lost after idle Thunderbird IMAPIDLE connection closed by server
Seen on: IMAP Dovecot Networking

Meaning

NAT/firewalls drop idle TCP connections after their timeout (often 5-30 minutes). Clients should re-issue IDLE every 10-29 minutes or use shorter keepalives; servers can set imap_idle_notify_interval. Enable TCP keepalive and raise the device's idle timeout where possible.

Common causes

  • Firewall/NAT idle timeout
  • Mobile network switching
  • Client not refreshing IDLE
  • Server imap_idle_notify_interval too high
  • Proxy/load balancer timeouts

⚡ Quick fix

  1. Send IDLE keepalives every ~10 min (imap_idle_notify_interval = 2 mins)
  2. Enable TCP keepalive
  3. Raise the NAT/LB idle timeout

Detailed fix by platform

Dovecot

  1. bash
    imap_idle_notify_interval = 2 mins
    # kernel: net.ipv4.tcp_keepalive_time = 240

How to diagnose

  1. Drop time — Constant?
  2. Keepalive — Enabled?
  3. Timeout — Device?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

Idle connections silently dropped by firewall/NAT — Networking: Connection works, then fails after being idle — firewall/NAT idle timeout dropped the TCP session (use keepalive) (Networking)Idle connections sile…IMAP: [AUTHENTICATIONFAILED] Invalid credentials — IMAP: NO [AUTHENTICATIONFAILED] Invalid credentials (Failure) (Email / SMTP)IMAP: [AUTHENTICATION…IMAP: Too many simultaneous connections — IMAP: NO [ALERT] Too many simultaneous connections. (Failure) (Email / SMTP)IMAP: Too many simult…LOGINDISABLED — IMAP: LOGINDISABLED — Plaintext authentication disallowed on non-secure connections (need STARTTLS) (Email / SMTP)LOGINDISABLEDNAT gateway SNAT port exhaustion (ErrorPortAllocation) — Networking: NAT gateway ErrorPortAllocation / SNAT port exhaustion — intermittent outbound connection timeouts (Networking)NAT gateway SNAT port…OVERQUOTA — IMAP: NO [OVERQUOTA] Quota exceeded (mailbox size limit exceeded) — APPEND/COPY failed (Email / SMTP)OVERQUOTAPort forwarding not working (CGNAT / double NAT) — Networking: Port forwarding configured but the port stays closed — carrier-grade NAT (CGNAT) or double NAT (Networking)Port forwarding not w…Public IP/domain unreachable from inside the LAN (NAT hairpin) — Networking: Server reachable from the internet but not from inside the LAN via its public IP — NAT loopback / hairpin NAT not working (Networking)Public IP/domain unre…IDLE

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.