Select Page

How to resolve and prevent 554 5.7.1 : Relay access denied email errors in Linux and Windows mail servers

How to resolve and prevent 554 5.7.1 : Relay access denied email errors in Linux and Windows mail servers

Emails play a crucial role in online communication. Business orders to meeting invites, lost or delayed mails can end up creating disgruntled customers.

In our role as Website Support Specialists for online businesses, we resolve hundreds of mail issues every day. A commonly encountered email bounce error faced by web hosts, website owners and server owners is:

554 5.7.1 <>: Relay access denied

See how we resolve email errors!

‘554 5.7.1 : Relay access denied’ error means that either the sender has failed security checks or the recipient’s mail server is misconfigured, and today, we’ll take a look at:

  1. What causes Relay Access Denied error
  2. How we fix it for server owners (eg. web hosting provider)
  3. How we fix it for mail users
  4. How we prevent this error in our customer’s (eg. web hosts) servers.

What causes Relay Access Denied Error?

When a mail is sent, it first goes to the sender’s mail server (aka MX). Then it’s RELAYED to the recipient’s MX, and from there to the recipient.

Here, TWO servers are involved – Sender’s MX and Recipient’s MX. If either one of these servers reject the mail, a Relay Access Denied error is shown to the sender.


Case 1 – Sender’s MX rejects the mail

Every mail server requires its users to provide a username and password to send mails. This is to keep spammers out. But very often valid mail users forget to turn on authentication in their mail clients, and the MX rejects their mail.

Bobcares manages the website support of several businesses. A quick look at the support tickets we handle shows that 95% of ‘Relay Access Denied’ errors are caused by incorrect SMTP settings.

So, when customers come to us facing this error, the first thing we check is their mail client settings. By guiding users with the correct settings specific to each mail client and mail server, we help them send emails without this error.


Case 2 – Recipient’s MX rejects the mail

The recipient’s mail server will accept a mail only if it can verify that the recipient is a valid user in that server. For eg. if the recipient’s account is cancelled or inactive, it won’t accept the mail.

Our Support Specialists have often traced the origin of these errors to:

  • Improper sender MX configuration (eg. SMTP auth settings disabled)
  • Inactive or cancelled recipient mail address
  • Recipient’s DNS MX records pointing to the wrong server (often after a migration)
  • Recipient’s user database errors

[ Are you losing your sleep over undelivered or delayed emails? Get our professional help to fix your email errors at affordable pricing. ]

We’ve seen two variations of this error in web hosting servers:

  • 554 5.7.1 Relay Access Denied – The recipient’s mail server logs show this error when a mail is rejected.
  • 454 4.7.1 Relay Access Denied – This error is seen in server logs when the recipient server is temporarily unable to accept mails. The mail delivery will be attempted again later.

So, if a website owner has started seeing these errors after a recent config change, or migration, or new server setup, we check the MX configuration of the domain and resolve any errors in that.

Pro Tip : If mails to several mail servers are bouncing, the mail server’s configuration could be incorrect. If mails to only a couple of recipient addresses are bouncing, the issue might be specific to those accounts.

Email errors troubling you?

No more delayed or undelivered emails. We'll fix all your email errors in no time.

Click Now to make your mail server functional


  1. Thanks for sharing your thoughts about Tech
    support. Regards

  2. thank you for the shared knowledge

  3. How to resolve 550 5.7.708 error

  4. Thank you for sharing such deep details,
    currently i am facing same issue and trying to solve it.

    i found one more way to test and got success.

    whenever we send mail from outlook or other mail client it goes to rejected.
    we had try with webmail and then mail deliver.

    The issue was local internet IP blacklisted.

    Thank you


Submit a Comment

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

Bobcares is a server management company that helps businesses deliver uninterrupted and secure online services. Our engineers manage close to 51,500 servers that include virtualized servers, cloud infrastructure, physical server clusters, and more.

Privacy Preference Center


    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]


    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


    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