SOLVED

Strange Exchange Online error when sending emails to users that are on another server

Iron Contributor

Hi,

Given that:

  1. mycompany.com and mycompany2.com have been added and verified in an Office 365 tenant (mycompany.onmirosoft.com).
  2. The MX records of mycompany.com points to mycompany-com.mail.protection.outlook.com
  3. The MX records of mycompany2.com points to mx.mycompany2.com (not Office 365)

Some of the users from mycompany2.com have been added on the Office 365 tenant mycompany.onmicrosoft.com for testing purposes, however, most of the users are still on the current cPanel-based email server. The MX records still point to the current cPanel-based Dovecot email server, mx.mycompany2.com.

 

So, we're expecting that any emails sent from anywhere to anything@mycompany2.com, goes to the mx.mycompany2.com email server.

 

It works as expected, except when sending an email from within the Office 365 tenant. Instead of sending the email to mx.mycompany2.com, it tries to find the user in the Office 365 tenant and obviously, it doesn't exist yet. So, the email gets rejected as 'The recipients weren't found at mycompany2.com'

 

This is a strange error.

 

How can I fix this?

6 Replies
best response confirmed by Haneef Ibn Ahmad (Iron Contributor)
Solution

Actually, just fixed this, by changing the email relay options, as shown here: Fix email delivery issues for error code 5.1.10 in Office 365

 

 

Hi Haneef,

 

That is normal issue, you have to change the Authority of your domain name and create an Conector to your On-Premises organization. It's a simple coexistence scenario.

 

Thanks for that.

 

Changed the authority of the domain, to 'Internal Relay' and the emails are delivering fine now.

 

Do I still need to setup a Connector?

 

By the way, thank you very much Nuno, you've been very helpful and swiftly responsive.

Yes, you will need a connector if you change the MX Record and need to deliver to on-premises system.

aha, okay! That makes sense.

But, my MX records for mycompany2.com are still pointing to mx.mycompany2.com, it hasn't been changed to mycompany2-com.mail.protection.outlook.com.

1 best response

Accepted Solutions
best response confirmed by Haneef Ibn Ahmad (Iron Contributor)