Deliverability

421 4.7.0 IP not in whitelist for RCPT domain: what it means

The error 421 4.7.0 IP not in whitelist for RCPT domain means the recipient's mail gateway, usually Mimecast in reports, only accepts connections from approved IPs, and the Google sending IP isn't on that list. The fix is on the recipient side: their admin must allow the IPs or change the mail routing.

Sohail HussainSohail Hussain9 min read

Short answer

  • The recipient's mail gateway refused the connecting Google IP because it is not on that domain's allowed list. Your message content, SPF, DKIM and DMARC did not cause it.
  • Only the recipient's admin can fix it, by allowing the sending IPs or changing routing so mail arrives from an IP they already trust. Send them the bounce text, the connecting IP and a timestamp.

You sent a message from Gmail or Google Workspace and got this back:

421 4.7.0 IP not in whitelist for RCPT domain, closing connection.

This text has been associated with recipient domains behind Mimecast, often when two Google Workspace domains mail each other. I could not verify a vendor document for that, so the steps below confirm it instead of assuming it. The fix sits on the receiving side, so most of this page is about proving that and handing the admin something specific.

I do not give a Mimecast menu path because I could not verify one. The Google Admin paths below come from Google's own help pages.

What the error means

Read it in parts:

  • 421 is a temporary failure reply, and the server closes the connection. Your sending server will retry, but a policy block like this fails again until someone changes the configuration.
  • 4.7.0 is the enhanced status code for a security or policy problem. It is generic; the text after it is what matters.
  • IP not in whitelist for RCPT domain is the rule that fired. The "RCPT domain" is the domain of the recipient address. The gateway holds an allowed-IP list for that domain, and the connecting IP is not on it.

The refusal happens at connection time, before the message body is accepted. SPF, DKIM and DMARC are not what is being checked, so editing those records will not help. Background: our glossary entries on SMTP and soft bounces.

Why it happens

Most common first. I have no confirmed vendor explanation for this exact string, so treat these as likely causes, not proven ones.

  1. The recipient restricts inbound connections by IP. The domain accepts mail only from listed sources, and Google's outbound IPs were never added.
  2. Mail between two domains in the same organization leaves Google and re-enters through the gateway. The connecting IP is a Google IP, which the policy does not expect.
  3. The sender is not going through a gateway the recipient trusts. If the sending organization uses a gateway for outbound, mail should leave from that gateway's IPs. If Gmail delivers directly, the recipient sees a Google IP.

Google's own documentation explains why a hand-typed list goes stale. Google has a global mail server network that grows dynamically, so Workspace mail servers use a large range of IP addresses that change often.

CauseSymptomFix (recipient admin)
Allowlist missing Google rangesOnly Google senders bounce; other providers arriveAllow the ranges, or change routing
Internal mail between your own domainsFails only between your Workspace domainsDecide the routing path for internal mail
Stale hand-typed IP listWorked before, now intermittentReplace with a rule that follows Google's published ranges
Sender bypasses its own gatewayConnecting IP in the bounce is a Google IPRoute outbound via the gateway the recipient trusts

Confirm which side and which IP

  1. Copy the full bounce text, the recipient address and the timestamp with time zone.

  2. Find the connecting IP in the bounce's diagnostic text, or in the Received headers of a copy that did arrive. Paste headers into our email header analyzer; background is in understanding email headers.

  3. Look up the recipient domain's mail servers:

    dig +short MX example.com
    

    If the hostnames end in mimecast.com, the domain is behind Mimecast. If not, another gateway may be producing the same text; the fix is still on the recipient side.

  4. Send to the same recipient from a different provider, such as a personal mailbox elsewhere. If that arrives and only Google IPs are refused, the allowed-IP list is the cause. If every sender fails, the domain's inbound policy is misconfigured.

  5. Check whether sender and recipient are in the same Google Workspace account or organization. If so, suspect the internal-routing case.

This is not a sender-side fix

Nothing in your sending settings can override the recipient's allowed-IP list. The steps below are for the recipient's admin, and your job is to give them a complete report.

Fix it as the recipient admin

Allow the right sources

  1. Open the inbound IP restrictions for the recipient domain in the gateway's admin console.

  2. Add the connecting IP from the bounce, or confirm which sources the organization expects.

  3. If you allow Google's ranges, do not type a static list and forget it. Google publishes its ranges in the DNS TXT record _spf.google.com, and the records it references. Read the first level with:

    dig +short TXT _spf.google.com
    

    Google's page, Google IP address ranges for outbound mail servers, is the reference to check against.

Keep forwarding ranges out of the list

Google lists separate ranges for unverified forwarding. Its page says messages from those addresses should be treated as unauthenticated, and not to add them to SPF records because that risks spoofing. Think twice before allowlisting them.

Change the routing instead

If sender and recipient are in one organization, an allowlist may be the wrong tool. Two common designs:

  • Let the gateway accept Google's outbound IPs for that domain.
  • Route mail so the connecting IP is one the gateway already trusts. On the Google side, routing rules live under Apps > Google Workspace > Gmail > Routing in the Admin console. Google's page on adding Gmail routing settings lists the options, including changing the route for internal outbound messages.

Both halves must agree. A routing change on the Google side only helps if the gateway accepts the IPs that mail then arrives from.

Do not ask the recipient to drop the IP restriction entirely unless they want that. It exists on purpose, and removing it widens who can send to their domain.

After any change, resend a test message and confirm it arrives. Retest instead of assuming; changes may take time to apply.

What Google says about recipient-side blocks

Google's help page on bounces due to a blocked IP address addresses a similar situation. If the recipient's mail service doesn't support approved senders, the recipient's IT admin should add Gmail's sending IP addresses to an allowlist, and the current range comes from Google's SPF record.

Checklist before you escalate

  • The exact error line is copied, with no edits.
  • You have the connecting IP, not just the sending domain.
  • You know whether the recipient MX points at mimecast.com.
  • You tested a sender outside Google and noted the result.
  • You know whether sender and recipient share a Workspace account.

If nothing works

You cannot fix this from the sending side, so the goal is to get a complete report to the right person.

  • The recipient organization's mail admin is the first contact, because they own the gateway policy.
  • The gateway vendor's support can only act for the customer who owns the domain, so expect to be routed back to that admin.
  • Google Workspace support, if you administer the sending account and need help confirming routing and outbound IPs on your side.

Include the exact error text, sender and recipient addresses, date and time with time zone, the connecting IP, whether other senders reach the same recipient, and what you already tried. A message you can paste:

Subject: Mail from Google Workspace rejected: 421 4.7.0 IP not in whitelist

Hello,

Messages from {sender@your-domain.com} to {recipient@their-domain.com} are
being rejected with:

421 4.7.0 IP not in whitelist for RCPT domain, closing connection.

Time of the latest attempt: {date, time, time zone}
Connecting IP shown in the bounce or headers: {IP address}
Other senders (non-Google) can reach this recipient: {yes/no}
Sender and recipient are in the same Google Workspace account: {yes/no}

This looks like an inbound IP restriction on your domain that does not
include Google's outbound mail servers. Could you review the allowed
sources for {their-domain.com}, or tell us which path your gateway expects
mail to arrive from?

Thank you.

How to prevent it

  • Before pointing a domain's MX at a gateway, list every legitimate inbound source, including Google servers delivering between your own domains, and test each one.
  • Write down how internal mail between your domains is supposed to flow.
  • Retest after any change to Google routing or gateway policy, from a mailbox outside the organization and one inside it.

Common questions

Can I ignore this because it is a 421?

No. A 421 is temporary in theory, so your server may retry, but a policy block repeats every time until the admin changes it. Eventually the message expires and you get a final failure notice.

Will fixing SPF, DKIM or DMARC clear it?

No. The rejection comes at connection time from an IP rule, before message authentication is evaluated. Your records are not the cause.

Can I fix it by sending from a different Gmail account?

Probably not. The rule keys on the connecting IP, and Google's mail servers will still be the ones connecting, whichever account you use.

How do I know the recipient uses Mimecast?

Run dig +short MX on the recipient domain and look for mimecast.com in the hostnames. That points to Mimecast being in the path, though the same error text could come from another gateway.

deliverabilitygoogle-workspace-witherror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed

Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.

Sohail Hussain|10 min read
Deliverability

SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it

`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.

Sohail Hussain|9 min read
Deliverability

421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix

The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.

Sohail Hussain|10 min read
Deliverability

421 4.7.0 Temporary System Problem. Try again later (10)

`421 4.7.0 Temporary System Problem. Try again later (10).` is a temporary Gmail deferral, not a permanent rejection. Google's server asked your sender to retry later. Slow your send rate, let your mail server retry, and check authentication and reputation if the deferrals last more than a day or two.

Sohail Hussain|9 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free