421 4.7.0 Gmail bounce: IP not on allowlist
What 421 4.7.0 means
The recipient domain accepts mail only from an approved set of IP addresses, and this sending IP is not on that list. Gmail closed the connection temporarily.
Message text
421 4.7.0 IP not in whitelist for RCPT domain, closing connection.
Common causes of 421 4.7.0
- Recipient domain restricts inbound mail to an IP allowlist
- Mail goes out through a server whose IP the recipient has not approved
How to fix 421 4.7.0
- Send through the relay the recipient's administrator has approved.
- Ask the recipient's administrator to add your sending IP to their allowlist.
Check your domain
Read the headers of a bounced messageRuns in your browser; nothing is uploaded.
Get your domain's deliverability score
Have the full bounce message? Paste it into the bounce code lookup and it will match the code and the provider for you. Open the bounce code lookup.
How to read 421 4.7.0
The first part, 421, is the SMTP reply code. Service not available, closing transmission channel: the server is shutting down or refusing the connection for now. Replies that start with 4 are temporary and replies that start with 5 are permanent (RFC 5321 §4.2.1).
The second part, 4.7.0, is an enhanced status code (RFC 3463 §2) written class.subject.detail. Class 4 is a Persistent transient failure (4xx): the command was not accepted, but the condition may clear, so the sender should try again later (RFC 5321 §4.2.1; RFC 3463 §2).. Subject 7 is security or policy: authentication, authorization or policy refused the message. The detail number refines the subject, and providers may define details of their own, which is why one code can read differently at Gmail, Microsoft and Yahoo.
Sending servers should retry a deferred message. RFC 5321 §4.5.4.1 advises waiting at least 30 minutes between attempts and trying for at least 4 to 5 days before giving up and returning a bounce. If the deferral keeps repeating, fix the cause rather than waiting.
Official source: knowledge.workspace.google.com. Last verified 2026-10-29.
Related guides
- How to create an SPF record (syntax and examples)
- How DKIM works and how to publish a DKIM record
- How to set up a DMARC record, from p=none to p=reject
Related codes
- 4.7.0 SMTP: security status
- 421 4.7.0 Gmail: no PTR record
- 421 4.7.0 Gmail: TLS required
- 421 4.7.30 Gmail: dkim fail, rate limited
- 421 4.7.32 Gmail: from header not aligned
- 451 4.7.23 Gmail: PTR record missing
FAQ
What does 421 4.7.0 mean?
The recipient domain accepts mail only from an approved set of IP addresses, and this sending IP is not on that list. Gmail closed the connection temporarily. This is a temporary failure.
How do I fix 421 4.7.0?
Send through the relay the recipient's administrator has approved. Ask the recipient's administrator to add your sending IP to their allowlist.
Is 421 4.7.0 permanent, and should I retry?
421 4.7.0 is a temporary failure. Your mail server normally retries by itself; if it keeps repeating, fix the cause.