Office 365 routing emails with webmail problem

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
Hi,

I have 2 email addresses created in cPanel, [email protected] and [email protected].

Recently I applied for Office 365 License, I associated [email protected] with Office365, but the other email address [email protected] is still in webmail.

I created a connector in exchange admin panel to create a routing, so i can use 1 email with ms exchange while the other email still in webmail.

MX Records:
Code:
ndn.edu.lb.     14400     IN     MX   
Priority: 0
Destination: mydomain.com.mail.protection.outlook.com
  
ndn.edu.lb.     14400     IN     MX   
Priority: 1000
Destination: mydomain.com
And cPanel routing is Local Mail Exchanger.

The problem is , when [email protected] (Webmail user) send email to [email protected] (Office 365 user), the email is received in the webmail of name2 user, not in his outlook.com inbox.

Any idea how to resolve this issue ? I stayed on the phone with teh Microsoft support team for 4h today, still didn't fix the problem.

Please I need your help.

Big thanks :)
 
Last edited by a moderator:

ankeshanand

Well-Known Member
Mar 29, 2021
66
15
8
India
cPanel Access Level
Root Administrator
Hi,

I have 2 email addresses created in cPanel, [email protected] and [email protected].

Recently I applied for Office 365 License, I associated [email protected] with Office365, but the other email address [email protected] is still in webmail.

I created a connector in exchange admin panel to create a routing, so i can use 1 email with ms exchange while the other email still in webmail.

MX Records:
Code:
ndn.edu.lb.     14400     IN     MX  
Priority: 0
Destination: mydomain.com.mail.protection.outlook.com
 
ndn.edu.lb.     14400     IN     MX  
Priority: 1000
Destination: mydomain.com
And cPanel routing is Local Mail Exchanger.

The problem is , when [email protected] (Webmail user) send email to [email protected] (Office 365 user), the email is received in the webmail of name2 user, not in his outlook.com inbox.

Any idea how to resolve this issue ? I stayed on the phone with teh Microsoft support team for 4h today, still didn't fix the problem.

Please I need your help.

Big thanks :)
Select the Email routing with Remote Mail Exchanger instead of Local Mail Exchanger and it Would work.
 

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
Select the Email routing with Remote Mail Exchanger instead of Local Mail Exchanger and it Would work.
I tried this way, the emails sent from user2 (Webmail) now reached user1 (Office365) in his outlook.com inbox. But when user1 (Office365) reply back to user2 (Webmail), the email bounce back with this message :

Your message to [email protected] couldn't be delivered.
user1 wasn't found at mydomain.com.
The address may be misspelled or may not exist.
Etc...
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
599
193
343
cPanel Access Level
DataCenter Provider
I'm not sure that setting it to remote is going to fix the issue with your split delivery. That will tell cPanel that everything is remote, but you have local users and then those won't get delivered. Without diving into the Exim config (not my area of expertise) I'm not sure that cPanel will handle this well.
 

ankeshanand

Well-Known Member
Mar 29, 2021
66
15
8
India
cPanel Access Level
Root Administrator
I tried this way, the emails sent from user2 (Webmail) now reached user1 (Office365) in his outlook.com inbox. But when user1 (Office365) reply back to user2 (Webmail), the email bounce back with this message :

Your message to [email protected] couldn't be delivered.
user1 wasn't found at mydomain.com.
The address may be misspelled or may not exist.
Etc...
Technically, There is a Better way in this which is cost free and would work fully. SMTP/IMAP/POP3 method for Gmail/Outlook (Free)
Go to Gmail and select Account and Import. Select Send mail as: and select add new Email Address. In this, Add your Email SMTP Details so that Email could be send.
Then go to Check mail from other accounts: and Add a New Mail account. Select and Enter IMAP Details or POP3 details as per your requirement and then its done. Now basically, Its working as a Gsuite and free
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,871
601
273
cPanel Access Level
Root Administrator
I agree with what @ffeingol said - the DNS will want to route all the email to one location, so having one on the server and one directly in Outlook is going to be problematic.

You could delete user1 from the cPanel account, but user2 will still not be able to properly send a message to user1 with that configuration.
 

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
Any official documentation from cPanel on how to setup this hybrid scenario ? to split deliverability between Office adn cPanel Mailbox ?

Until now, I deleted the office users from cPanel, and set email routing to "Local Mail Exchanger".

Now if a cPanel user try to send a mail to office user, I get "No Such User Here" message.

Any idea ?? thanks
 

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
I don't have any additional details on that since it isn't something that is supported. What about the option that @ankeshanand presented, where the user checks mail directly from another tool?
If I select the Email routing with Remote Mail Exchanger instead of Local Mail Exchanger, the email sent from cpanel to office, go well to the office inbox, but if I send the other way, from office user to cpanel user, I get a bounce back message (From outlook) saying the user is not found on mydomain.com, I think it's because the email go in a loop or something.
 

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
19h on the phone during 7 days with Microsoft support team, trying to configure properly a hybrid environment of Microsoft Exchange and cPanel.
Honestly, I prefer to keep cPanel as my mail server, this Exchange product is not a success.

Stay away, even the technical team there don't know how to run it.