Cannot Connect to Remote Server

Susan Morris 0 Reputation points
2026-11-24T19:44:03.6+00:00

Since Sat, no one in our non-profit (4 of us), can receive or send emails. When I send an email from my personal acocunt to the nonprofit account, error states "cannot connect to remote server."

Microsoft 365 and Office | Other
0 comments No comments

3 answers

Sort by: Most helpful
  1. Manoel Barros 23,595 Reputation points Independent Advisor
    2026-11-24T23:23:47.9566667+00:00

    Hi!

    To help you, I need more details, such as which Outlook app you are using and what type of email account it is. Please answer the questions below:

    1. Is your email from a custom domain (@yourname.com, @companyname.com), Microsoft (@outlook.com or @hotmail.com), Google (@gmail.com), or a third-party provider?
    • Since this is a non-profit organization, I assume you are using a custom domain? If so, are you the administrator of this domain, or is it controlled by someone else, another website, or a third party? For instance, when you need to add a new email address for a new staff member, who do you contact?
    1. Are you using Outlook Classic, the New Outlook, or Outlook Web via a browser? Try to identify which one it is using the image below.

    User's image

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Susan Morris 0 Reputation points
    2026-11-24T19:59:18.4766667+00:00

    Does not seem to help. I also am not able to get in as administrator. Very odd. For some reason, I also cannot get into admin and authenticator to work.

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-11-24T19:46:17.5733333+00:00

    The 554 5.4.317 Message expired, cannot connect to remote server report means delivery was retried and eventually expired because Exchange Online could not connect to the server handling your nonprofit’s email, so check Microsoft 365 service health and your domain’s DNS status before changing any settings.^1^

    Because all four users are affected and Outlook on the web also fails, this is not just a problem with one computer or the Outlook application.

    1. Check for a Microsoft 365 outage

    Sign in using your nonprofit administrator account:

    1. Open the Microsoft 365 admin center.
    2. Select Health → Service health.
    3. Look for an active incident under Exchange Online.
    4. If Exchange Online is degraded, open the incident and monitor its updates. Microsoft advises that a separate support request normally is not needed for an already-listed incident.^2^

    If no relevant incident appears, continue below.

    2. Check the nonprofit domain and MX record

    The MX record tells internet mail systems where to deliver email for your domain. A missing, incorrect, or obsolete MX record can prevent everyone at the domain from receiving mail.

    1. In the Microsoft 365 admin center, select Show all → Settings → Domains. In some layouts this appears as Setup → Domains.
    2. Select your nonprofit’s domain.
    3. Review the Status column.
    4. If an issue is shown, select the three dots next to the domain and choose Check health.
    5. Follow the displayed correction exactly. The domain troubleshooter identifies which DNS records need attention and the required values.^3^

    For an Exchange Online-only setup, incoming mail normally uses an MX target ending in mail.protection.outlook.com. Microsoft also advises removing MX records that still point to an old mail system after mail has moved to Exchange Online.^4^

    Do not delete or replace DNS records merely because they look unfamiliar. Record the current values first and apply only the values shown for your domain by Microsoft 365. If the admin center says that DNS is managed elsewhere, make the correction at the company where the domain’s DNS is hosted.

    Also sign in to the company where the domain was purchased and verify that the domain registration is active. An expired customer-owned domain stops users configured under that domain from receiving email.^5^

    3. Run Microsoft’s email diagnostic and a message trace

    If service health and domain health are normal:

    1. In the Microsoft 365 admin center, open Help & support.
    2. Search for Troubleshoot Email Delivery.
    3. Enter one affected nonprofit address and the external sender’s address, then run the tests.

    Next, trace a failed message:

    1. Open Admin centers → Exchange.
    2. Select Mail flow → Message trace.
    3. Set the date range around one failed test message.
    4. For an incoming test, enter the personal account as sender and the nonprofit account as recipient.
    5. Run a second trace in the opposite direction.
    6. Open each result and note whether it says Failed, Pending, Rejected, or shows no record.

    Message trace shows whether Microsoft 365 received, rejected, deferred, or delivered a message and what occurred during processing.^6^

    4. Escalate if the checks do not identify the correction

    From the Microsoft 365 admin center:

    1. Select Help & support at the lower right.
    2. Enter:
      All users unable to send or receive mail; inbound NDR is 554 5.4.317 Message expired, cannot connect to remote server.
    3. Include:
      • when the outage began;
      • the full NDR with addresses removed;
      • domain-health results;
      • one inbound and one outbound message-trace result.
    4. If the suggested results do not resolve it, select Contact Support and choose phone or email.

    If the Microsoft 365 subscription was purchased entirely through a reseller or partner, contact that partner instead; otherwise, an administrator can open the request directly in the admin center.^7^


    References

    1. Email nondelivery reports (NDRs) and SMTP errors in Exchange Online - Exchange | Microsoft Learn
    2. Find and fix email delivery issues as a Microsoft 365 for business admin
    3. Find and fix issues after adding your domain or DNS records
    4. External Domain Name System records for Microsoft 365
    5. Domain expiring soon insight in the new Exchange admin center in Exchange Online
    6. Message trace in the Exchange admin center in Exchange Online
    7. Get support for Microsoft 365 for business
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.