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 Hussain10 min readShort 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
554is a permanent SMTP failure, so retrying the same message will not help.5.7.1is 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 rejectedis 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 deniedis 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:
- 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.
- Your outgoing server requires login and Outlook is not sending credentials. A Microsoft Q&A answer on a related
554 5.7.1 Access deniederror attributes it to this or to blocklisting. One user there fixed it after finding the authentication box had unticked itself. - 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.
- 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 see | Who rejected | What you can do |
|---|---|---|
| Error pops up in Outlook as you send, nothing leaves | Your outgoing (SMTP) server | Steps 2 and 3 |
| Bounce email arrives later, names the recipient's domain or server | The recipient's server rejected the sending server's IP | Step 4 |
| Works for other recipients, fails for one address or domain | Almost always that recipient's server | Step 4 |
| Works on mobile data, fails on home or office network | Your outgoing server dislikes your network IP | Step 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).
- 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.
- Choose More Settings and open the Outgoing Server tab.
- Tick My outgoing server (SMTP) requires authentication.
- Choose Use same settings as my incoming mail server, unless your provider gives separate SMTP credentials.
- Open the Advanced tab. Set the outgoing port to
587with TLS/STARTTLS, or465with SSL, whichever your provider documents. - 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
- Disconnect any VPN and resend. Some hosts reject VPN and hosting-company ranges.
- Switch to mobile data or another Wi-Fi and resend. If it works there, your usual IP is the problem.
- Look up your public IP by searching "what is my IP" from the affected machine, and note it.
- 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.
- 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.
- Copy the whole bounce, including the rejecting server name, the bracketed IP and the timestamp.
- 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.
- 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.
- 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.
- 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 lists5.7.513for 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
| Cause | Symptom | Fix |
|---|---|---|
| SMTP authentication off | Instant error in Outlook, new or reset profile | Tick the authentication box, use 587 or 465 |
| Wrong port or encryption | Same, or timeouts | Use the exact values your provider lists |
| VPN or new network | Fails on one network only | Disconnect VPN, ask host to allow the range |
| Server-side IP ban | Worked yesterday, fails after password changes | Host unbans IP, update stale passwords |
| Recipient block or blocklist | Later bounce naming the recipient's server | Contact recipient, check blacklists |
| Country or geo rule | Error mentions a country code | Recipient 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.
Explore: Email Deliverability
Related Articles
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.
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.
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.
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.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free