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

Xescaich

Registered
Mar 30, 2020
1
0
1
Spain
cPanel Access Level
Root Administrator
@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
 

JoelA

Registered
Aug 21, 2019
3
0
1
Earth
cPanel Access Level
Reseller Owner
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.

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.

2. What's the primary intent and value of setting up GSuite Split Delivery with your cPanel account?
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!
[/QUOTE]

Thank you.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,643
2,629
363
cPanel Access Level
Root Administrator
@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:


but you would still need root access in order to perform that work.
 

JoelA

Registered
Aug 21, 2019
3
0
1
Earth
cPanel Access Level
Reseller Owner
@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:


but you would still need root access in order to perform that work.
I would think they are still relevant regardless the age as of the thread. People still use gSuite (now Google Workspace) and that is only INCREASING.

WRT to root requirement, perhaps I can ask my host to make the changes, idk.

I will look into the linked article, thx. -- I looked into it. I don't see how that article has any bearing on the requests here.

Further from all I've seen in this thread and elsewhwere all the "manual" fixes for THIS issue that require root seem to be workarounds because cpanel (it's mailer or it's DNS or whatever) just won't respect settings when they are external to cpanel.

All the issues I've run into seem to stem from cpanel intermittently and often without rhyme or reason defering to either the internal or external DNS records or both, just not consistently either.
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,643
2,629
363
cPanel Access Level
Root Administrator
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.
 

CrazySerb

Active Member
Apr 1, 2015
36
12
58
Canada
cPanel Access Level
Root Administrator
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?
 

Attachments

CrazySerb

Active Member
Apr 1, 2015
36
12
58
Canada
cPanel Access Level
Root Administrator
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:



"Here is what we are getting on a certain % of emails:

https://prnt.sc/X6SQovpsDAf9

That's the error showing the email is bounced/rejected due to the filter.

Here are the filters we have in place (it's the 1st one on that screen that's being triggered/causing this bounce though):

https://prnt.sc/x-lxhwJMu-W4

And here are the actual routing rules/filters in detail:

Rule #1 (the one that is getting triggered apparently sometimes for these bounced messages):
https://prnt.sc/mLK2KAnF_two
https://prnt.sc/2AvjGV7Tbq_Z

Rule #2:
https://prnt.sc/o8dp3R09Lzwm
https://prnt.sc/M854jQCChwIs

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.