Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

“Relay access denied” error in Office 365? Here’s how to fix it

by | Nov 12, 2018

Email errors are quite confusing.

550 5.4.1 Relay Access Denied” is one such error website owners see in Office 365 servers.

Here, you know that something is not proper as you see “Access Denied” in the error.

But where the problem lies?

At Bobcares, we often resolve such email errors as part of our Technical Support Services for web hosting companies.

Today, let’s take a quick look at the reasons for Office 365 relay access denied errors and how we fix them.

What is “relay access denied” error in Office 365?

Users, sometimes get this error when they send emails from contact forms or email clients in Exchange servers.

550 5.4.1 Relay Access Denied

 

This error means that the sender is not allowed to relay emails via the server.

An open relay is an insecure mail server that allows anyone to send emails without authentication. This can cause spamming and resource abuse. Most of the mail servers don’t allow them to be used as open relays.

So, when a user attempts to send emails using a mail server that is not an open relay, it will reject the emails with the error 550 5.4.1 Relay Access Denied

 

Office365 “relay access denied” error – Causes and Fixes

In our experience handling Office 365 relay access denied errors, let’s see the major causes and how we fix them.

1. Incorrect SMTP authentication details

A quick look at the support tickets that we handled shows that 95% of ‘Relay Access Denied’ errors are caused by incorrect SMTP settings.

Relay access denied error occurs when Office 365 server is unable to authenticate the mail user.

When you send an email using an email client or contact form, you have to provide the login credentials to authenticate.

Mail server uses these details to validate the connection. If any of these details are wrong, Office 365 will refuse to send emails through it.

 

How we fix?

Our Support Engineers check the following SMTP configuration settings of the sender domain and confirm that everything is correctly configured.

Email account name : Your email account
Email password : Email password
Incoming server : Incoming mail server
Outgoing server : Outgoing mail server
SMTP port : Outgoing mail server port
Encryption : SSL or TLS

 

We also confirm that the option “My Outgoing server requires authentication” is enabled in the mail client settings.

This ensures that all the emails will be sent from the account only after authenticating with the mail server.

2. Port blocks

By default, SMTP port is 25. However, most of the network providers or ISPs block this port to reduce spamming.

If the user configures the email account to use port 25, but this port is blocked, then user’s emails will be bounced with the error Relay access denied.

 

How we fix?

We’ll make the user to check the connectivity on port 25 to the Exchange server(smtp.office365.com) using the command.

telnet smtp.office365.com 25


If there is any connectivity issues at the network level, this needs to be fixed by the ISP end.

Also, we allow appropriate rules for allowing SMTP connectivity for valid users.

 

3. IP address restriction

Receive Connectors(Inbound connectors) in mail servers are used to configure how the mail server listens for SMTP connections.

In Office 365 servers, these receive connectors only allow internal users to relay emails.

To relay emails externally, the IP address of an application server or device should be allowed in receive connectors.

Else, emails will be rejected with the error Relay access denied.

We’ve seen cases where a change in the network or ISP changes the user’s IP address.

In that case, your connector couldn’t  identify and relay your messages to external recipients.

Result is, Relay access denied errors.

 

How we fix?

In-order to relay emails externally, we’ll add the user’s IP address in the Allowed list of Receive connectors.

This can be done from Exchange Admin center > Mail flow > Connectors.

Proper permissions are also set for the newly added Receive connectors so that they can send emails to external recipients.

 

4. Incorrect SPF record setting

We see email providers use a security feature called SPF(Sender Policy Framework) to check the email authenticity of the sender.

It decides the servers that can send emails on behalf of a domain.

When emails don’t originate from the servers mentioned in the SPF record of the domain, mail server assumes it as fraud and rejects them.

 

How we fix?

Our Support Engineers ensure that the following SPF record is added for the sender domain.

v=spf1 include:spf.protection.outlook.com ~all

 

We’ll then obtain the user’s public IP address that is used to send SMTP traffic to Exchange Online.

Also, we’ll cross check if the user’s IP address is added to this SPF record. It should look like:

v=spf1 ip4:xx.xx.xx.xx include:spf.protection.outlook.com ~all

 

Now, the recipient domain can identify Exchange server as one of the approved senders.

 

5. Inactive or mis-configured recipient email account

We’ve seen 2 cases where a recipient server can’t confirm a user as valid.

  • The user database of recipient’s mail server gets corrupt, and the user can’t be identified as valid.
  • Recipient has set wrong MX record IP address, and mails are attempted to be delivered to wrong server.

 

How we fix?

This issue can’t be fixed at the sender’s mail server end.

However, we look for the details in the mail server logs and contact the recipient MX administrators for a quick solution.

 

Conclusion

“Office 365 relay access denied” error occurs when users send emails to external domains via Office 365. Today, we’ve seen the 5 possible reasons for this error and how our Support Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comment

  1. Ziad Mahmoud

    thanks
    resolved.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF