Deliverability

Client host rejected: Access denied in Outlook: causes and fixes

"Client host rejected: Access denied" (5.7.1) means a mail server refused your IP address before it accepted any message. Outlook did not cause it. Check that your account authenticates on port 587, that your current IP is not blocked, and that you are not on a VPN. Details and steps below.

Sohail HussainSohail Hussain10 min read

Short answer

  • Read the bounce to see which server said no. If it names the recipient's mail server and an Outlook or Microsoft sending address, the recipient blocked the sending IP, and you can only fix that by contacting them.
  • If the error appears instantly in Outlook with your own outgoing server, turn on SMTP authentication, use port 587 or 465, and disconnect any VPN.
  • If neither helps, send your mail host the full error, the time and your public IP.

You hit send and get something like this:

554 5.7.1 <mail-db8eur05olkn2028.outbound.protection.outlook.com[40.92.89.28]>: Client host rejected: Access denied

The message looks like an Outlook problem, but in most cases Outlook did not generate it. A mail server refused the connection from an IP address, before it looked at your message.

What the error means

  • 554 is a permanent SMTP failure, so retrying the same message will not help.
  • 5.7.1 is the enhanced status code for "delivery not authorized". Microsoft's documentation of Exchange Online non-delivery reports lists it as a sender that isn't allowed to send messages to the recipient, and it covers several different situations.
  • Client host rejected is wording typical of Postfix, a common mail server, though other servers can say it too. "Client" means whoever connected to that server, identified by IP.
  • Access denied is the generic text for a rule that says reject.

The "client" is the machine that opened the connection to the rejecting server. If you sent from an outlook.com or outlook.it address, that client is a Microsoft sending server, not your laptop. That is why this error confuses people: the IP in the brackets is often not yours.

Why it happens

Most common first:

  1. The recipient's server blocks the IP that delivered your mail. In a Microsoft Q&A thread from an Italian-language Outlook user, the bounce came from the recipient's server and named a Microsoft outbound address as the rejected client. A volunteer answer there pointed to the recipient's anti-spam rules or a blocklist. That thread does not show a confirmed fix.
  2. Your outgoing server requires login and Outlook is not sending credentials. A Microsoft Q&A answer on a related 554 5.7.1 Access denied error attributes it to this or to blocklisting. One user there fixed it after finding the authentication box had unticked itself.
  3. Your own IP is banned or not allowed on your outgoing server. Examples are an IP allow list, an automatic ban after failed logins, or a new network or VPN.
  4. Geographic or country rules. Users have reported a sibling message, Client host rejected: Incorrect country code, where the receiving server blocked a Microsoft IP it located in another country.

We cannot tell from the error alone which of these you have. The first step is to find out.

Step 1: Work out which server rejected you

What you seeWho rejectedWhat you can do
Error pops up in Outlook as you send, nothing leavesYour outgoing (SMTP) serverSteps 2 and 3
Bounce email arrives later, names the recipient's domain or serverThe recipient's server rejected the sending server's IPStep 4
Works for other recipients, fails for one address or domainAlmost always that recipient's serverStep 4
Works on mobile data, fails on home or office networkYour outgoing server dislikes your network IPStep 3

Open the bounce and read the line that says which server returned the error. Paste the headers into our email header analyzer if you want the hops laid out.

Test with a second recipient

Send the same message to a different address on a different provider. If only one recipient fails, the problem is on their side, and changing Outlook settings will not help.

Step 2: Fix authentication and port (your own server rejects you)

Use this when the error appears right away in Outlook, and the account is POP/IMAP with a separate outgoing server (not a plain outlook.com account).

  1. In classic Outlook, open File > Account Settings > Account Settings, select the account and choose Change. Menus vary by version, so look for the account's server settings.
  2. Choose More Settings and open the Outgoing Server tab.
  3. Tick My outgoing server (SMTP) requires authentication.
  4. Choose Use same settings as my incoming mail server, unless your provider gives separate SMTP credentials.
  5. Open the Advanced tab. Set the outgoing port to 587 with TLS/STARTTLS, or 465 with SSL, whichever your provider documents.
  6. Click OK, then send a test message.

Port 25 is for server-to-server delivery and is often restricted for home users. Our explainer on SSL/TLS for SMTP covers the encryption options. Microsoft Q&A answers on similar 5.7.1 errors give the same advice: confirm authentication is on, then confirm the port matches your provider's instructions.

Settings can reset

One person on Microsoft Q&A reported that the authentication checkbox had unticked itself after an update or profile change. Recheck it even if you set it up before.

Step 3: Rule out your network and IP

  1. Disconnect any VPN and resend. Some hosts reject VPN and hosting-company ranges.
  2. Switch to mobile data or another Wi-Fi and resend. If it works there, your usual IP is the problem.
  3. Look up your public IP by searching "what is my IP" from the affected machine, and note it.
  4. Update the saved password in Outlook and on every phone or tablet using the same mailbox. Stale credentials can trigger automatic IP bans on servers with login-failure protection.
  5. Ask your mail host whether your IP is in a ban list or access list. This part is on their side.

If you run the server yourself and it is Postfix, check the mail log for the rejecting line, then the client restrictions and any access map:

grep "Client host rejected" /var/log/mail.log
postconf smtpd_client_restrictions

Log paths and map names vary by setup. If the IP is in an access map with REJECT, remove it, rebuild the map with postmap, and reload Postfix. Make sure permit_sasl_authenticated comes before IP-based reject rules so logged-in users are not caught.

Step 4: The recipient's server blocked the sending IP

This is the case when a bounce arrives and names the recipient's server. Nothing in your Outlook settings can change it, because the recipient's server is rejecting the IP of whoever relays your mail.

  1. Copy the whole bounce, including the rejecting server name, the bracketed IP and the timestamp.
  2. Check whether that IP is on a public blacklist. Be aware that shared Microsoft sending IPs serve many customers, so a listing there may not reflect your own behavior.
  3. Contact the recipient by another route (phone, a different address, their IT contact) and give them the sender address, the time, and the rejecting line. Ask them to allow your sender or check their block rules.
  4. If you send from your own domain, confirm your SPF record is correct. The SPF generator can build one. Authentication problems usually produce different errors, but a clean setup removes one variable.
  5. If the IP in the bounce belongs to Microsoft and Microsoft itself blocked it, Microsoft's NDR documentation describes a delist route for code 5.7.511, which refers to a banned sending IP. Its table also lists 5.7.513 for a recipient's custom block list, where the recipient must remove you. Compare your full code with the Microsoft list of Exchange Online NDR codes.

If you are a bulk sender, a rejection like this counts as a hard bounce: stop resending the same message to that address until the cause is fixed.

Cause, symptom, fix at a glance

CauseSymptomFix
SMTP authentication offInstant error in Outlook, new or reset profileTick the authentication box, use 587 or 465
Wrong port or encryptionSame, or timeoutsUse the exact values your provider lists
VPN or new networkFails on one network onlyDisconnect VPN, ask host to allow the range
Server-side IP banWorked yesterday, fails after password changesHost unbans IP, update stale passwords
Recipient block or blocklistLater bounce naming the recipient's serverContact recipient, check blacklists
Country or geo ruleError mentions a country codeRecipient must change the rule

Checklist before you try again

  • The bounce or error tells you which server rejected the message.
  • SMTP authentication is on and the port matches your provider.
  • VPN is off, and you tested on a second network.
  • Saved passwords are updated on all devices.
  • You tried a second recipient on a different provider.
  • You have the full error text, timestamp and public IP saved.

If nothing works

Contact the party that owns the rejecting server. For an instant error in Outlook, that is your email host or IT admin. For a bounce naming the recipient's server, it is the recipient's admin. If the bounce shows a Microsoft sending IP and your account is outlook.com or Microsoft 365, use Microsoft's in-product support or your Microsoft 365 admin. Include the full bounce, not a screenshot of the pop-up alone. Here is a message you can copy:

Subject: Mail rejected with "554 5.7.1 Client host rejected: Access denied"

Hello,

My message to {recipient-address} was rejected on {date and time, time zone}.
Full error: {paste the complete bounce text, including the server name and IP}
Sender address: {your-address}
My public IP at the time: {your-IP}
Outgoing server and port in Outlook: {server}:{port}, authentication on
What I tried: second network, VPN off, second recipient

Can you check whether this IP or sender is blocked by your access rules or
blocklist, and tell me what is needed to allow it?

Thank you

Common questions

Is this an Outlook bug?

Usually not. Outlook relays the response from a mail server; the rule that said no sits on your outgoing server or on the recipient's. That is why reinstalling Outlook or rewriting the email does nothing.

Why does it only fail for one recipient?

Because that recipient's server is blocking the sending IP or sender, while others accept it. Ask them to check their blocklist and allow your address.

Is it a Microsoft outage?

Rarely. An outage typically gives temporary 4xx or timeout errors, while this one is a permanent 554 policy rejection from a specific server.

Should I just keep resending?

No. A 5xx code is permanent, and repeated attempts can add to the problem. Change something first: the settings, the network, or the recipient's allow list.

deliverabilityoutlook-italianerror-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 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 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