Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Gmail 421 4.7.0: Connection expired, try reconnecting

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Gmail closed the SMTP connection and asked the client to open a new one. On the SMTP errors page, under reply code 421 and status 4.7.0, one entry reads:

Connection expired, try reconnecting. For more information, go to About SMTP error messages.

That sentence is the fault this article covers. The same page lists other 421 / 4.7.0 replies (missing-PTR rate limit, low reputation, suspicious content, "Try again later, closing connection"). Those are separate faults. Match Connection expired, try reconnecting before you change DNS, reputation or relay settings.

421 is temporary. About SMTP error messages says 4xx failures are temporary, that the sender will try again, and that 421 means try again later. The connection-expired text adds the concrete action: reconnect.

What the symptom means

Gmail closed the SMTP connection with that temporary channel error and told the client to reconnect. Neither Google page says why a session expires. About SMTP error messages describes 421 as a temporary transmission-channel error and does not define a timer for "Connection expired".

This is not a permanent reject, not 421 / 4.7.28 unusual-rate limiting, not Google Workspace SMTP relay 5.7.0 Email relay denied, and not 452 / 4.2.2 storage deferral.

If your mailer logged only 421 and 4.7.0 without the connection-expired sentence, open the full remote reply first. Several Gmail texts share that number pair.

Likely causes

Cause (possibilities; Google does not state why a session expires) What you see How to confirm
Gmail ended this SMTP session as expired Exact connection-expired sentence under 421 / 4.7.0 Bounce or mail log carries those words
A long-lived or idle connection can become unusable Deferred mail after a quiet period on one connection Log shows the expired text, then a later successful new session
The client can reuse a dead connection Repeated connection-expired replies without a reconnect Client reconnects and the next attempt succeeds
A different 421 / 4.7.0 text was mis-read PTR rate-limit, low reputation, or "Try again later" wording Compare the full sentence on the SMTP errors page
Mail is only deferred in your queue Local status deferred, remote reply connection-expired Read the queue reason before flushing

Prove the cause before changing anything

All of these are read-only.

1. Copy the full remote reply. Keep 421, 4.7.0, and the exact words Connection expired, try reconnecting. If the text names a PTR, reputation, content, allow list or "Try again later, closing connection", stop and treat that full sentence as a different fault.

2. Check other 4.7.0 entries on the same page. The SMTP errors page places the connection-expired line among several 4.7.0 texts. PTR rate limiting and low-reputation replies are later entries under the same status family.

3. Read the deferred reason on the sending host. For Postfix, read the reason in postqueue -p and the mail log before you flush. Confirm the remote reply is connection-expired, not relay denied and not a 4.7.28 rate limit. See /ffb9917-articles/postfix-mail-deferred-queue-read-the-reason.html.

4. Note whether a brand-new SMTP session already works. If a test message on a fresh connection to Gmail succeeds while an old queue item still shows the expired text, the fault was the session, not the message content.

Fix

Reconnect and let the sending system deliver again. The bounce text is the instruction: try reconnecting. Do not change SPF, DKIM, PTR or SMTP relay settings for a reply that only says the connection expired.

On the sending mailer, allow normal temporary-error retries, or start one new delivery attempt after a fresh SMTP connection. A whole-queue flush to chase one expired session can reopen other deferred mail before its cause is fixed.

If the log shows a different 421 / 4.7.0 sentence, stop. PTR rate limiting, 4.7.28 unusual rate, and Workspace relay 5.7.0 are separate faults.

There is no DNS or main.cf changing step for connection-expired itself, so no save-first configuration file and no configuration back-out. If reconnecting returns a different Gmail text, treat that new text as the fault.

Example (illustrative): Postfix defers one Gmail delivery with 421-4.7.0 and Connection expired, try reconnecting. A minute later a new session accepts another message. DNS is left alone; the deferred item delivers on the next retry after reconnect.

Confirm the fix

  1. A new SMTP session to Gmail completes without the connection-expired sentence.
  2. The deferred message leaves the queue, or a replacement message is accepted.
  3. If the next reply is a different 421 / 4.7.0 text, or a 4.7.28 rate limit, follow that text instead of repeating reconnect-only steps.

What to watch afterwards

  • Idle pooled connections to Gmail can die while your queue still believes the socket is usable. Prefer reconnect-on-error behaviour in the client.
  • A burst of connection-expired lines together with 4.7.28 unusual-rate lines means you have two faults; clear them separately.
  • Workspace SMTP relay authentication failures use different codes and texts. Do not "fix" connection-expired by registering a relay IP.

Risks and limits

  • Several Gmail replies share 421 and 4.7.0. Acting on the wrong sentence leads to the wrong DNS or reputation change.
  • About SMTP error messages does not define a timer for "Connection expired". The operational fix remains a new connection and a retry.
  • Gmail can change bounce wording. Match the live SMTP errors page.
  • These steps have not been lab-tested.

Sources