Issues Sending Email to Accounts "On" Server but using Office365 or Gmail

Edrick Smith

Well-Known Member
Oct 9, 2017
54
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
So I've noticed this issue and some clients have complained they're not receiving their billing invoices. The issue is that when the server or an account on the server from say another domain sends an email, if that domain they are sending to on the same server is configured to use something like Office365 or Google Suite the email doesn't reach them.

So lets say I have on the server;

mydomain1.com
myhosting.com

---

mydomain1.com uses Office365 and the MX records are configured for such all regular emails from outside the server make it to them fine.

But if myhosting.com sends them an email they never receive it because even though the server correctly shows Remote Mail for that domain and there's no MX record taking priority it still seems to attempt local delivery? Perhaps I'm missing something?
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
945
423
363
cPanel Access Level
DataCenter Provider
Check if the domain name is in /etc/localdomains or /etc/remotedomains. If the mail is off the server it should be in remotedomains. You don't want to manually edit those files, but if the domain is set for 'remote mail' or automatic and the MX is remote, it should be in remotedomains.
 
  • Like
Reactions: cPanelLauren

Edrick Smith

Well-Known Member
Oct 9, 2017
54
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
Check if the domain name is in /etc/localdomains or /etc/remotedomains. If the mail is off the server it should be in remotedomains. You don't want to manually edit those files, but if the domain is set for 'remote mail' or automatic and the MX is remote, it should be in remotedomains.
It is indeed in remote domains
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Like @ffeingol noted all domains that receive mail off the server should be in remote domains and should not be present in localdomains. If that's true then I'd advise you check the mail logs for what's happening when myhosting.com sends to one of the domains that is receiving mail remotely.
 

Edrick Smith

Well-Known Member
Oct 9, 2017
54
6
8
Boston, MA
cPanel Access Level
DataCenter Provider
Like @ffeingol noted all domains that receive mail off the server should be in remote domains and should not be present in localdomains. If that's true then I'd advise you check the mail logs for what's happening when myhosting.com sends to one of the domains that is receiving mail remotely.
As far as I can tell it seems to be correctly sending them then? Perhaps they need to check their spam folder further. It's just a pain when they claim they never received billing invoices and use an account associated with their domain on the server....


2020-04-16 20:41:06 1jPHsH-0004tt-8C => [email protected] R=dkim_lookuphost T=dkim_remote_smtp H=aspmx.l.google.com [64.233.179.26] X=TLS1.2:ECDHE-ECDSA-AES128$
2020-04-16 20:41:06 1jPHsH-0004tt-8C Completed