Skip to content
Microsoft (Outlook.com and Microsoft 365) · permanent error

5.7.1: IP listed on both a connector and the IP Allow list

An outside server's IP is set on both an inbound connector and the IP Allow list, which hides the real blocklist that refused it.

Microsoft
Provider
Permanent (5xx)
Class
Sources checked
Author

At a glance

Code
5.7.1
Temporary or permanent
PermanentRefused for good: the message comes back to the sender, and resending it gets the same answer.
Who has to act
The recipient's side. Their mail admin has to change something; you can tell them.
What the server says
5.7.1 Unable To Relay: Blocked by Customer Allow list

What it means

Microsoft documents this message for a specific misconfiguration. An external server cannot connect to Microsoft 365 because its IP address is on a blocklist, but because the same address was added to an inbound connector and to the IP Allow list in connection filtering, the bounce says Blocked by Customer Allow list instead of naming the real-time blocklist (RBL) that matched. Removing the address from the IP Allow list makes the bounce name the blocklist, which tells the sender what to fix.

Common causes

  • An external server's IP was added both to an inbound connector and to the IP Allow list.
  • That IP is also on a real-time blocklist used by Microsoft 365.

How to fix it

  1. 01Admins of the receiving tenant: remove the external IP from the IP Allow list in connection filtering.
  2. 02Have the sender try again and read the new bounce, which names the blocklist.
  3. 03The sender then requests removal from that blocklist.
  4. 04Keep IP addresses in connector settings for your own on-premises servers only.

Sources

What this page rests on, checked on 20 Oct 2026. The explanation is ours; the reply text is the server's.

  1. 5.7.1Unable to relay.The receiving system refused to pass the message on because it is not the final destination for the recipient domain.MicrosoftPermanent
  2. 5.7.1Sending IP on the Microsoft 365 blocklist.Microsoft 365 refused the message because the sending IP address is on its own blocklist, named Blocklist 1 in the bounce.MicrosoftPermanent

5.7.1 at other providers

  1. 550 5.7.1Blocked by a domain policy.A rule set by the recipient's or the sender's Google Workspace admin blocks this message, so Gmail rejected it under that policy.GmailPermanent
  2. 550 5.7.1Relay IP does not match the sending domain.Google's SMTP relay knows your IP, but the mail's sending domain is not one that IP is registered to relay for in your Workspace account.GmailPermanent
  3. 550 5.7.1Blocked as likely spam.Gmail's filters judged this message likely to be spam and rejected it outright, instead of delivering it to the spam folder.GmailPermanent
  4. 550 5.7.1IPv6 sender without PTR or authentication.Gmail rejected mail that arrived over IPv6 because the sending address lacks a matching PTR record, or the message failed authentication.GmailPermanent
  5. 550 5.7.1Blocked for low IP reputation.Gmail permanently rejected the message because the IP it came from has a very low reputation with Gmail.GmailPermanent
  6. 550 5.7.1Blocked for low domain reputation.Gmail permanently rejected the message because the domain it comes from has a very low reputation with Gmail.GmailPermanent

Further reading

All 111 Microsoft codesEvery code in the wikiPaste your own bounce

Beat · paid monitoring

A heartbeat for your email.

Beat runs every check on this site on a schedule: 41 checks, 33 blacklists and real inbox placement. The moment something breaks, it tells you what broke, why it matters, and the exact fix.

example.comWatching
  • SPFpass
  • DKIMpass
  • DMARCp=none
  • Blacklists0 of 33

Illustrative. Your domain, every few hours.

Also from us:Pulse: your own sending infrastructureConsulting: $65/hr, no retainer