In Progress [FORUMS-86] How to configure gsuite split delivery with cPanel?

digitaledge

Member
Aug 1, 2019
6
1
1
Kentucky
cPanel Access Level
Website Owner
Hello,

New to the forum here for cPanel and really hoping that someone can assist me with a workaround. To give some background my company is using hosting for a VPS and we have cPanel where a lot of our company emails are being utilized. We had some situations where emails we sent to our clients was being delivered to junk or spam and on a daily basis, we receive hundreds of emails. To try to find a better solution we left our staff emails on the hosting company with cPanel and moved our main business email accounts over to G Suite. We have 1 account now on G Suite with about 15 different aliases we utilize for different parts of what the business does on a daily routine. Upon doing this action and moving MX records to G Suite I broke how the staff would receive email and it no longer worked. Working with Google I was able to successfully set up Split Delivery and now the staff can receive email from outside sources (Gmail, Yahoo, etc.) and reply to those emails without any problems at all. The main issue I am facing now that I could use the help on is I am unable to email my staff from G Suite. If I email them it gets bounced and says the user cannot be found. Working with G Suite now for over 2 weeks and the hosting company as well with no much success. I heard that there used to be a workaround however I have not had much luck. I was sent a set of instructions from 2016 from the hosting company that is still a thread here from 2016 but after following those steps still no luck. Any help someone could offer to fix this for me would be most appreciated.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

We had some situations where emails we sent to our clients was being delivered to junk or spam and on a daily basis, we receive hundreds of emails.
That's unfortunate. Were you able to pinpoint any potential causes? Our How To Keep Your Email Out of the SPAM Folder knowledge base article provides some general guidelines to follow to prevent this from happening.

Upon doing this action and moving MX records to G Suite I broke how the staff would receive email and it no longer worked.
Do you have more information or specific errors noted from when this happened (prior to enabling Split Delivery)? Sometimes it's just a matter of verifying that Remote Mail Exchanger is enabled in cPanel >> Email Routing for the domain you updated the MX records on. This lets the cPanel & WHM server know that your email service is hosted on a remote mail server, and that local email deliveries should be routed externally.

I was sent a set of instructions from 2016 from the hosting company that is still a thread here from 2016 but after following those steps still no luck.
Working with Google I was able to successfully set up Split Delivery and now the staff can receive email from outside sources (Gmail, Yahoo, etc.) and reply to those emails without any problems at all. The main issue I am facing now that I could use the help on is I am unable to email my staff from G Suite. If I email them it gets bounced and says the user cannot be found.
I'd like to get a better understanding of the steps you followed. Can you confirm if you are referring to thread 209402 ? Additionally, can you share the step-by-step instructions you've followed thus far along with the version of cPanel & WHM installed on your server and an example the specific error message you are seeing?

Thanks!
 
Last edited:

digitaledge

Member
Aug 1, 2019
6
1
1
Kentucky
cPanel Access Level
Website Owner
Thank you so much, Michael! This is what was provided to me as a workaround from my hosting company but it did not help any at all.


I look forward to your reply.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
In cPanel >> Track Delivery do you happen to see Too many "Received" headers - suspected mail loop on the Result line for one of the failed emails? If so, browse to cPanel >> Email Routing and try setting it to Backup Mail Exchanger to see if that helps.

Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
Here's another potential solution shared by one of our Technical Analysts in a support ticket:

After reviewing the steps here:
https://forums.cpanel.net/threads/google-apps-split-delivery-for-domain.209402/#post-2260661

It seems as though this would work better instead of this for step 2:
=====================
2. there must be a subdomain CNAME (gapps.domain.com) as alias of root domain (domain.com), this will be used to deliver mail sent through cPanel or its SMTP;

=====================

You were to do the following:
2. Create a subdomain gapps.domain.com using the Subdomains icon in cPanel
2.1 Update the routing for gapps.domain.com to be Remote using the Email Routing icon in cPanel
2.2 Update the MX records for gapps.domain.com to use the google apps MX records using the Zone Editor icon in cPanel

Then you should be able to use the other provided steps as indicated in the forum post. This modification to step two will tell the cPanel server to route the messages to the google server, and the routing rules at the google server will take care of the rest for you.
Is this helpful?
 

digitaledge

Member
Aug 1, 2019
6
1
1
Kentucky
cPanel Access Level
Website Owner
In cPanel >> Track Delivery do you happen to see Too many "Received" headers - suspected mail loop on the Result line for one of the failed emails? If so, browse to cPanel >> Email Routing and try setting it to Backup Mail Exchanger to see if that helps.

Thank you.
Most of the errors I am getting when emailing from G Suite to our email accounts on cPanel is,
No Such User Here

and from G Suite it would report.


Bounced
Google tried to deliver your message, but it was rejected by the relay. The error that the other server returned was: 550-Verification failed for 550-No Such User Here" 550 Sender verify failed
 

digitaledge

Member
Aug 1, 2019
6
1
1
Kentucky
cPanel Access Level
Website Owner
Here's another potential solution shared by one of our Technical Analysts in a support ticket:



Is this helpful?
I am getting lost on this step if it even will help.

2.2 Update the MX records for gapps.domain.com to use the google apps MX records using the Zone Editor icon in cPanel

Does this mean that I go into Cloudflare and add new MX records on top of the ones already there for our domain for the G Suite setup?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
I am getting lost on this step if it even will help.

2.2 Update the MX records for gapps.domain.com to use the google apps MX records using the Zone Editor icon in cPanel

Does this mean that I go into Cloudflare and add new MX records on top of the ones already there for our domain for the G Suite setup?
Hello @digitaledge,

I apologize for the confusion. Integration assistance with third-party solutions such as Google's G suite split delivery functionality falls outside our support scope, so confirming the specific setup instructions involves some trial and error. Once you confirm it's setup properly, I'll update the official workaround instructions to ensure they are a little easier to understand.

To clarify, the advice quoted from the support ticket is suggesting the following change to the instructions in the linked post:

I have managed to get the system working on split delivery.

For anyone wanting to achieve split delivery with Google Apps and cPanel on a shared hosting environment, these are the steps:

1. root domain (domain.tld) must have MX records pointing to Google's MX servers;
2. Create a subdomain named "gapps.yourdomain.tld" using the Subdomains icon in cPanel.
3. Update the email routing setting for "gapps.yourdomain.tld" to Remote Mail Exchanger using the Email Routing icon in cPanel.
4. Update the MX records for "gapps.yourdomain.tld" to MX records suggested by Google using cPanel >> Zone Editor. If the DNS records are hosted on a remote server, then you should also create MX records for "gapps.yourdomain.tld" at domain's DNS hosting provider (e.g. CloudFlare).
5. there must be another subdomain (in addition to gapps.yourdomain.tld) CNAME (cp.domain.tld) as alias to the cPanel hosting server (in my case, HostGator's server br###.hostgator.com.br, masked for example purposes);
6. Google Apps Split Delivery must be correctly configured (Configure split delivery - Google Apps Administrator Help), with the subdomain described in step #5 as the destination (step 7 on this page);
7. on cPanel, use Local Server as the setting on the MX Records page for the root domain (e.g. domain.tld);
8. on cPanel, set a Domain Forwarder with "from: domain.tld" and "to: gapps.domain.tld";
9. on Google Apps, set a default route to change envelope recipient of all mail that corresponds to the REGEXP "\[email protected]" with the "Replace Recipient" setting, set to the "[email protected]" option.

These are the steps I took to manage the desired outcome of split delivery without having users on the cPanel side that can't reach the users on the Google Apps side.

If anyone have any questions feel free to ask for help.
Thank you.
 
Last edited:

digitaledge

Member
Aug 1, 2019
6
1
1
Kentucky
cPanel Access Level
Website Owner
Hello @digitaledge,

I apologize for the confusion. Google Split Delivery is an unsupported for use with cPanel & WHM so getting it to work will involve some trial and error. Once you confirm it's setup properly, I'll update the official workaround instructions to ensure they are a little easier to understand.

To clarify, the advice quoted from the support ticket is suggesting the following change to the instructions in the linked post:



Thank you.
I just wanted to let you know I followed all the steps you provided and as of now, everything appears to be working fine. I really appreciate the help ;)
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,749
2,205
363
cPanel Access Level
DataCenter Provider
Twitter
I just wanted to let you know I followed all the steps you provided and as of now, everything appears to be working fine. I really appreciate the help ;)
No problem, and thanks to you for helping test those workaround instructions! I'm marking this thread as In-Progress and attaching it to internal case number FORUMS-86. We'll switch the thread prefix over to SOLVED once the updated workaround instructions are published to our Resources section.

Thanks!
 

adamcanderson

Registered
Aug 16, 2019
1
0
1
mesa, az
cPanel Access Level
Website Owner
Can you please help? I'm trying to set up split delivery with GSuites and my domains. I've tried to follow the instructions above. I have the gapps sub set up but had no option to configure MX files. I have a cp sub set up, but couldn't set it as an alias. I have the route set to the cp sub for a pattern matching my domain on non recognized addresses. Right now, on emails sent from the domain or not, I get an error that 550 SMTP AUTH is required on port 587. That's the port in motion gave me. please help.