[FORUMS-86] How to configure gsuite split delivery with cPanel?
PinnedHello,
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.
-
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?
0 -
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.0 -
Here's another potential solution shared by one of our Technical Analysts in a support ticket: [QUOTE] 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?0 -
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 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 0 -
Here's another potential solution shared by one of our Technical Analysts in a support ticket: Is this helpful?
These steps are very similar to what I originally posted are they not? FYI: We use Cloudflare and thats where all our records are.0 -
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?0 -
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 (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 "\w+@gapps.domain.tld" with the "Replace Recipient" setting, set to the "existing-user-name@domain.tld" 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.0 -
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 ;)0 -
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 our0 -
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. 0 -
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: Thank you.
Michael, Having problems of my own with split delivery and trying to follow these instructions you quoted from Lucas Mentz. In step 6 you clarify by referencing step 7 on this linked page: Configure split delivery - G Suite Admin Help That page is now obviously changed as there are no steps so I'm not sure what the reference was and what to clarify. My problem is somewhat different to OP but quite related. I moved 4 users from cpanel mail to gsuite but maintain some forwarders on teh cpanel. When mail gets sent to one of these forwarders, and the target is one of the gsuite users, depending on whether cpanel is set as local mail exchanger or remote mail exchanger I either get 550 SMTP errors or cpanel accepts the message but instead of routing the mail to the gsuite box as it should (and where my mx record points), it forwards the mail to the user's old (deprecated but existing) mailbox on cpanel. Figured the above setup could help but not following every step and missing the linked clarification isn't helping.0 -
Hi, [QUOTE]1. root domain (domain.tld) must have MX records pointing to Google's MX servers;
[QUOTE]4. Update the MX records for "gapps.yourdomain.tld" to MX records suggested by Google using cPanel >> Zone Editor.
Question 1) Do (1) & (4) mean pointing to the same Google mail servers as mentioned here ( Configure split delivery - Google Apps Administrator Help), with the subdomain described in step #5 as the destination (step 7 Email routing and delivery - G Suite Admin Help )? [QUOTE]Email routing and delivery > Route messages using split delivery 6. Select Change Route, select the external server from the list, then scroll down and click Save.
--- Question 3) I don't understand what cp.domain.tld actually do, does cp.domain.tld relate to default route mentioned in step 9? [QUOTE]9. on Google Apps, set a default route to change envelope recipient of all mail that corresponds to the REGEXP "\w+@gapps.domain.tld" with the "Replace Recipient" setting, set to the "existing-user-name@domain.tld" option.0 -
Hello Everyone, Thanks for sharing the additional questions and feedback. Internal case FORUMS-86 remains open to provide more precise workaround instructions. I don't have a firm ETA to offer on the publication of the updated instructions at this time, but I'd like to ensure I am testing under similar conditions when the time comes. To help with this, please share answers to the following questions: 1. Is your access limited to cPanel, or do you have full root access to the cPanel & WHM server? 2. What's the primary intent and value of setting up GSuite Split Delivery with your cPanel account? 3. What are the step-by-step instructions you are using to test the success of the workaround instructions? Thanks! 0 -
Hello, Recently I configured a G Suite routing in cPanel, with a split delivery configured in G Suite dashboard. I'm receiving and sending emails now using Gmail, but if I send a mail from any domain name on the same server, the emails are still going to Webmail, I waited 1 week just in case of DNS propagation but still nothing changed. Any idea ? Thanks 0 -
That happens if the domain of that email is in /etc/localdomains If the domain is in that file Exim is not checking domain's MX records, but instead is ending the mail locally. If you have root access remove the domain from /etc/localdomains and add it to /etc/remotedomains 0 -
That happens if the domain of that email is in /etc/localdomains If the domain is in that file Exim is not checking domain's MX records, but instead is ending the mail locally. If you have root access remove the domain from /etc/localdomains and add it to /etc/remotedomains
You mean I only remove 1 domain ? the domain which is subscribed to G Suite ?0 -
You mean I only remove 1 domain ? the domain which is subscribed to G Suite ?
Yes, you move the domain from /etc/localdomains to /etc/remotedomains0 -
@quietFinn I move the domain name and the problem is fixed, thanks :) and I learned something new 0 -
Thanks for sharing good information 0 -
@psytanium Hi so I see you solved the problem, I have configured g suite split delivery correctly, all working except if I send email from cpanel server account to g suite account that the server sends the email locally. If I remove the domain from /etc/localdomains I stop receiving mail on the cpanel server accounts. So if you could help me as to how did you do it to work correctly. Thanks 0 -
I have the same questions as sweekeong81 in post #14. Is there already an answer on these issues? 0 -
Hello Everyone, Thanks for sharing the additional questions and feedback. Internal case FORUMS-86 remains open to provide more precise workaround instructions. I don't have a firm ETA to offer on the publication of the updated instructions at this time, but I'd like to ensure I am testing under similar conditions when the time comes. To help with this, please share answers to the following questions:
Sorry for delayed response, I did not get notifications from the thread. [quote] 1. Is your access limited to cPanel, or do you have full root access to the cPanel & WHM server?
WHM + cPanel but no root access. It is a shared hosting reseller account. [quote] 2. What's the primary intent and value of setting up GSuite Split Delivery with your cPanel account? [quote] Gsuite costs licenses per seat. It is more economical to maintain forwarders and service mailboxes (backup failure notifications, cron jobs, etc.) on the cpanel as well as to relay through cpanel SMTP for services (eg. backup notifications, pbx voicemail sending, cron job results, etc). My users also find the cpanel interface for adding forwarders more familiar/accessible than anything built in google (which requires gsuite Admin console access that they don't have.) In some cases there are also actual users using the cpanel account. As their admin I maintain a mailbox on the cpanel server which is less expensive than adding an add'l gsuite licensed box for each client/domain I service.
3. What are the step-by-step instructions you are using to test the success of the workaround instructions? Send mail to/from gsuite to a forwarder Send from/to a cpanel mailbox and gsuite mailbox Trigger an email from a mailer on cpanel server (eg notice or invoice in WHMCS) sent to cpanel mailbox, gsuite mailbox and to an forwarder. That last one is important as when I did this workaround in 2019 I thought it all worked but lately (maybe due to changes, not sure) it was brought to our attention that notices from WHMCS were not making it to their proper destinations (in one case a cpanel forwarder pointing to a non-commercial gmail account)
Thanks!
Thank you.0 -
@JoelA - at this point I'm not sure the answers are relevant as this thread is three years old. Without root access to the server you wouldn't be able to perform the necessary configurations. I can also confirm we don't plan to provide an official article on our end to address this issue. We do have some good details in this thread how a user setup a smarthost that only applied to certain domains on the system: 0 -
@JoelA - at this point I'm not sure the answers are relevant as this thread is three years old. Without root access to the server you wouldn't be able to perform the necessary configurations. I can also confirm we don't plan to provide an official article on our end to address this issue. We do have some good details in this thread how a user setup a smarthost that only applied to certain domains on the system:
0 -
Without root access there wouldn't be a way to configure this on a cPanel server. If you'd like to see that behavior added it would require a feature request, as that would be an entirely new feature to allow an individual cPanel account to control a split-delivery situation. 0 -
I am getting this error message quite a bit while sending to emails that are set up on cPanel and do not exist in Google Workspace when sending from one of the Google Workspace accounts, from the same domain (email is blanked out in the attached screenshot). Any ideas why this happens, and what sort of settings I need to modify in Google Workspace settings to avoid this from happening? 0 -
I'm not totally sure since that error is from the Google side of things. Do you also have split delivery setup as outlined in this thread, and are sending to an address that uses the split delivery? 0 -
I'm not totally sure since that error is from the Google side of things. Do you also have split delivery setup as outlined in this thread, and are sending to an address that uses the split delivery?
Yes, I have it set up as suggested... Here is my thread on Google boards with specific details on this: And here are the actual routing rules/filters in detail: Rule #1 (the one that is getting triggered apparently sometimes for these bounced messages): Rule #2: and both of those were set up according to the original setup threads/advice listed and mentioned in the original thread." I am being told that the problem is with the Rule #1 somehow (in that thread)... not sure what the problem is and how to solve it though.0
Please sign in to leave a comment.
Comments
29 comments