New Outlook IMAP Connection Failure – RemoteConnectionError / BadGateway

Elmar Manongsong 0 Reputation points
2026-11-28T08:14:22.0433333+00:00

We cannot connect one of our company cPanel-hosted email accounts to New Outlook for Windows. The problem occurs on multiple computers and laptops.

Error encountered:

  • HTTP Status: 400 Bad Request

Error: RemoteConnectionError

Status: BadGateway

Description: "We were unable to reach your email provider. Please check your server settings, or try again later."

Troubleshooting performed:

Confirmed that the email account works in cPanel Webmail.

Confirmed that it works in Outlook Mobile and Outlook Classic.

Verified the IMAP and SMTP settings.

Confirmed that other company email accounts can connect to New Outlook.

Tested the affected account on multiple computers, with the same result.

Question:

Why does New Outlook fail to connect to this specific cPanel IMAP account even though the same account works in other email applications?

Could this be related to Microsoft's cloud-based IMAP connection service, and what steps can we take to resolve the RemoteConnectionError (BadGateway)?

We would appreciate any technical guidance or recommended troubleshooting steps.We cannot connect one of our company cPanel-hosted email accounts to New Outlook for Windows. The problem occurs on multiple computers and laptops.

Error encountered:

HTTP Status: 400 Bad Request

Error: RemoteConnectionError

Status: BadGateway

Description: "We were unable to reach your email provider. Please check your server settings, or try again later."

Troubleshooting performed:

Confirmed that the email account works in cPanel Webmail.

Confirmed that it works in Outlook Mobile and Outlook Classic.

Verified the IMAP and SMTP settings.

Confirmed that other company email accounts can connect to New Outlook.

Tested the affected account on multiple computers, with the same result.

Question:

Why does New Outlook fail to connect to this specific cPanel IMAP account even though the same account works in other email applications?

Could this be related to Microsoft's cloud-based IMAP connection service, and what steps can we take to resolve the RemoteConnectionError (BadGateway)?

We would appreciate any technical guidance or recommended troubleshooting steps.

Outlook | Windows | New Outlook for Windows | For business
0 comments No comments

2 answers

Sort by: Most helpful
  1. Fahim-Nz 360 Reputation points Independent Advisor
    2026-11-28T09:13:44.0233333+00:00

    Hello @Elmar,

    Since the affected account works in cPanel Webmail, Outlook Mobile, and Outlook Classic, but fails in New Outlook across multiple computers, this does not appear to be a general mailbox or local computer issue.

    One possibility worth investigating is New Outlook's cloud-based IMAP connection service. Unlike Outlook Classic, New Outlook uses Microsoft's cloud infrastructure to connect to third-party IMAP providers.

    I'd suggest checking the following:

    1/ Check the detailed connection error

    New Outlook's Developer Tools can help identify the specific error returned during account setup.

    1. Close New Outlook.
    2. Press Windows + R.
    3. Enter olk.exe --devtools and press Enter.
    4. Open the Network tab.
    5. Attempt to add the affected email account again using Advanced Setup.
    6. Look for failed requests highlighted in red.
    7. Select a failed request and open the Response tab.

    Check whether the response contains:

    Changing the ImapRemoteServerInfo is not allowed

    If you see this message, it indicates that Microsoft's cloud service may have retained an older IMAP server association and is rejecting the current server information.

    2/ Check with your hosting provider if the error is different

    If the response does not contain the message above, ask your hosting provider to:

    1. Check the Dovecot logs at the exact time of your connection attempt.
    2. Confirm whether the incoming IMAP connection attempts reach the mail server.
    3. Check for rejected connections, TLS errors, authentication failures, or firewall restrictions.

    This can help establish whether the failure occurs before the connection reaches the hosting server or during the IMAP connection itself.

    Was this email account previously hosted on another server, or was its IMAP hostname changed? This is particularly relevant because cPanel has documented a New Outlook issue involving an outdated IMAP server association. Can't connect to IMAP email account with New Outlook

    (Please note that cPanel is a third-party provider, not an official Microsoft website. The article is shared as additional technical guidance)

    Could you first check the Developer Tools response and share the specific error returned?

    That result will help narrow down whether this is related to the stored IMAP server association or a separate connection issue.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-28T08:15:27.05+00:00

    Continue using Classic Outlook for this mailbox, then have the cPanel host correlate its IMAP logs with a New Outlook connection attempt and submit New Outlook diagnostics to Microsoft if no connection reaches the server.

    New Outlook officially supports third-party IMAP accounts, so the cPanel account is not inherently unsupported.^1^ However, the results already obtained—success in webmail, Outlook Mobile, and Classic Outlook; failure on several PCs; and success for other company accounts—make another local reinstall, profile reset, or settings check unlikely to isolate this case.

    Why the clients can behave differently

    Classic Outlook can establish and maintain a traditional IMAP configuration locally. New Outlook is built on a modern service architecture rather than Classic Outlook’s desktop architecture.^2^

    Microsoft also documents cloud synchronization for non-Microsoft accounts: mailbox data can be synchronized between the provider and Microsoft data centers.^3^ Consequently, a connection that works from Classic Outlook does not prove that every connection initiated through New Outlook’s service path will work.

    RemoteConnectionError / BadGateway identifies the failing stage, but does not establish whether Microsoft could not reach the host, the host rejected the connection, or authentication/TLS negotiation failed. The account-specific outcome could involve:

    • A rejection or throttling rule applying only to that mailbox.
    • Authentication behavior that differs for this account.
    • A malformed or unexpected response returned during IMAP login.
    • DNS, certificate-chain, TLS, or firewall behavior affecting connections from the service path.
    • A New Outlook interoperability or service-side defect.

    Capture the provider-side result

    Ask the cPanel hosting provider to monitor the IMAP and SMTP logs while reproducing the failure:

    1. Record the exact UTC time of the attempt and affected email address.
    2. In New Outlook → Settings → Accounts → Email accounts, retry adding the account using its advanced IMAP configuration.
    3. Have the provider search the IMAP authentication, firewall, and rate-limiting logs for that timestamp.
    4. Ask for the result in one of these forms:
      • No inbound connection: investigate DNS/public reachability or the Microsoft service path.
      • TLS handshake failure: inspect the certificate chain, hostname match, supported TLS configuration, and any TLS/SNI filtering.
      • Connection blocked: inspect firewall, intrusion-prevention, geographic, reputation, and connection-rate policies.
      • Authentication rejected: compare the server’s exact rejection with a successful Classic Outlook login for the same mailbox.
      • Login succeeds and disconnects afterward: capture the IMAP command/response immediately preceding termination.

    The provider should compare this mailbox with one of your company mailboxes that New Outlook successfully adds. Differences in cPanel account restrictions, authentication policy, mailbox state, or server responses are more useful here than comparing different PCs.

    Do not disable the server firewall broadly. If logs show an explicit block, have the provider create the narrowest appropriate exception after identifying the connection source and rule.

    Workaround in Classic Outlook

    Classic Outlook’s manual setup is the supported practical workaround while the service-path issue is investigated:

    1. Select File → Add Account.
    2. Enter the address.
    3. Select Advanced options → Let me set up my account manually.
    4. Select IMAP and enter the cPanel-provided values.
    5. If setup fails, select Change Account Settings and enter the provider’s explicit server, port, and encryption values.^4^

    Since this mailbox already works in Classic Outlook, there is no need to remove or rebuild that working configuration.

    Escalate with correlated diagnostics

    If the provider sees no rejection—or sees a valid login that New Outlook nevertheless reports as BadGateway—submit a New Outlook diagnostic package:

    1. Reproduce the error and record its UTC timestamp.
    2. Select Help → Feedback.
    3. Include:
      • RemoteConnectionError
      • BadGateway
      • HTTP status 400
      • The timestamp
      • Confirmation that Classic Outlook and Outlook Mobile work
      • Confirmation that other accounts on the same cPanel service work
      • The hosting provider’s sanitized log result
    4. Under Can we contact you about this feedback?, select Yes so diagnostics can accompany the report.
    5. If working with Support, select Help → Get Diagnostics → Upload Logs or Send Diagnostics.^5^

    Do not post passwords, mailbox contents, tenant identifiers, or complete server logs publicly. Microsoft Support and the host will need matching UTC timestamps and sanitized connection results to determine which side terminated the session.


    References

    1. Supported accounts in new Outlook for Windows
    2. Overview of the new Outlook for Windows
    3. [New Outlook](https://support.microsoft.com/outlook/getstarted/sync-your-account-in-outlook-to-the-microsoft-cloud)
    4. Troubleshoot Outlook email setup | Microsoft Support
    5. Contact support and provide feedback in new Outlook for Windows | Microsoft Support
    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.