Sending mail between two domains

gildas

Well-Known Member
Mar 30, 2017
57
5
8
Paris
cPanel Access Level
Root Administrator
Hello,

On the same body, two domains are named DomainJ and DomainS.
Domain J domains point to Office 365 services.

DomainS domain services to Office365 services, but an MX field is also created to the IP address of the CPANEL mail server.

DomaineS domain, use the email service of CPANEL but also Office 365.

The problem is that if you send an e-mail from the CPANEL DomainS domain to a box (create on Office365) Domain J, that's what you received by the default box CPANEL Domain J and not on the Office 365 box associated with this domain.

Do you have a solution for sending an email from CPANEL and domain Domain sending well the mail to the address of DomainJ is create on Office365?
A change must be made at the MX level of each domain? or a specific setting must be done on the WHM?

Best Regards
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
Houston
cPanel Access Level
DataCenter Provider
Hi @gildas


I don't believe I'm understanding the question 100%

DomainS domain services to Office365 services, but an MX field is also created to the IP address of the CPANEL mail server.
DomaineS domain, use the email service of CPANEL but also Office 365.
These sound like DomainS may be doing a split delivery? But the issue doesn't sound like it's with DomainS but rather DomainS sending to DomainJ am I correct?

The problem is that if you send an e-mail from the CPANEL DomainS domain to a box (create on Office365) Domain J, that's what you received by the default box CPANEL Domain J and not on the Office 365 box associated with this domain.
This is the part I'm having trouble understanding, it sounds like you're sending from DomainS -> DomainJ and it's not being sent to Office365 but rather being sent locally. If that's correct can you make sure that DomainJ is in
Code:
/etc/remotedomains
and that it is not present in
Code:
/etc/localdomains
as it sounds like DomainJ doesn't get any of its mail on the server it shouldn't be present in localdomains.

Thanks!