Google Apps split delivery for domain

Status
Not open for further replies.

Marcio Vecchi

Registered
Aug 8, 2016
2
0
1
Piracicaba
cPanel Access Level
Reseller Owner
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 rnviroment, these are the steps:

1. root domain (domain.com) must have MX records pointing to Google's MX servers;
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;
3. there must be another subdomain CNAME (cp.domain.com) as alias to the cPanel hosting server (in my case, HostGator's server br###.hostgator.com.br, masked for example purposes);
4. Google Apps Split Delivery must be correctly configured (Configure split delivery - Google Apps Administrator Help), with the subdomain described in step #3 as the destination (step 7 on this page);
5. on cPanel, use Local Server as the setting on the MX Records page for the root domain;
6. on cPanel, set a Domain Forwarder with "from: domain.com" and "to: gapps.domain.com";
7. 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.

Olá Lucas, poderia me ajudar a configurar uma entrega divida. Estou tendo problemas já que o Google não consegue entregar para meu servidor, devido a falta de autenticação SMTP.
Se puder me contactar, ficarei grato.

Abs
 
Last edited by a moderator:

Lucas Mentz

Member
Jul 23, 2016
5
0
1
Brazil
cPanel Access Level
Website Owner
Olá Marcio,

Pode explicar como fez a configuração na parte do Google?
Eu segui exatamente as instruções descritas no link do passo #4 da minha mensagem anterior.

Por parte do cPanel está conseguindo rotear mensagens para o Google Apps?
 

jcampista

Registered
Aug 11, 2016
1
0
1
Mexico
cPanel Access Level
Website Owner
hello lucas im very new in cpanel, im trying to configure split delivery with google and bluehost.
Bluehost is saying that it can not be done with their servers and cpanel, but i know it can work.
i really need your help in setting up this. but im not really sure how to accomplish these steps.
can you please give more detail (for dummies :( ) for steps 2 and 3 ?

if i can get an email from you or hangout or something i will really appreciate.

thanks in advance.
 

Lucas Mentz

Member
Jul 23, 2016
5
0
1
Brazil
cPanel Access Level
Website Owner
Sure, what is the DNS provider you use to manage your domain records? If you're in doubt or don't know, ask Bluehost about this.
Because those two steps are regarding the NS configuration for those two subdomains on your domain's DNS records.
 
Last edited:

BIlal Jawaid

Registered
Dec 27, 2016
1
0
1
Pakistan
cPanel Access Level
Root Administrator
Hi SoftDux,

I did, as a matter of fact, albeit through a hacky solution:

* I have configured my domain (domain #1) as a 'Local Mail Exchanger'
* I have setup MX-records for my domain to point to Google
* I have added an email routing destination from my Google Apps dashboard, pointing to my server IP
* I have configured email routing in Google Apps for 'unknown accounts only'
* I have setup an additional domain (domain #2) on my server, acting as a remote MX. The MX-records point to Google as well. I have also configured this domain as a domain alias in Google apps.
* I have created local e-mail accounts for the non Google users on domain #1.
* I have created forwarders for Google Apps users on my domain #1, pointing to domain #2. (Otherwise, outbound email from my server to the domain #1 would be impossible)

How this works now:

* Non Google Apps email is sent to Google, marked as 'unknown', then forwarded to my server IP, which receives it locally.
* Google Apps email just works
* The forwarders are in place to make sure I can still send mail from my server to my primary domain.

Brother seems like you got success with it but I am quite unable to get it. I have a cPanel Dedicated server and I trying to setup split domain with Rackspace. now what I have done is explained below;

Please consider abc.com as a domain on dedicated server and rackspace to be the hosting provider where I will host my additional mail boxes. Rackspace server does have the same domain abc.com and email account configured which I do not wish to retain on dedicated server.

- Configured domain abc.com on dedicated server with MX pointing to Rackspace Server with Backup Mail Exchanger Configurations. below is the list of MX Records;
30 mail.abc.com
10 mx1.emailsrvr.com
20 mx2.emailsrvr.com

- Configured Domain abc.com on rackspace.com with Split Domain Functionality where I provided server hostname and verification email address without any credentials as their server does not look for credentials of verification email address
- I have created one of my email account on rackspace server and one of my email accounts on dedicated server abc.com
- When I try sending email from Gmail to both of the email accounts email is successfully received to Rackspace server but not on abc.com
- When I try sending email from abc.com domain to rackspace server email is delivered successfully but emails from rackspace server to abc.com domain are not being delivered

If I change the dedicated server abc.com email routing to Local Mail Exchanger than rackspace server does not listen to that server. but when I change it to backup or remote than rackspace starts listening to the dedicated server. If I change the email routing to Remote Mail Exchanger configurations than local accounts on the dedicated server stops listening to each other. hence as per my understanding Backup Mail Exchanger Configurations are the best.

Now I am moving ahead to a dead-end with shortage of ideas on how to enable my dedicated server start receiving emails from rackspace server.

Any ideas to get it moving ahead would be highly welcoming.

Thanks.

Bjawaid
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
When I try sending email from abc.com domain to rackspace server email is delivered successfully but emails from rackspace server to abc.com domain are not being delivered
Could you post the output from /var/log/exim_mainlog for one of the affected messages? EX:

Code:
exigrep MSGID /var/log/exim_mainlog
Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter

Michael Turnquest

Registered
Aug 29, 2018
1
0
1
Bahamas
cPanel Access Level
Website Owner
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 rnviroment, these are the steps:

1. root domain (domain.com) must have MX records pointing to Google's MX servers;
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;
3. there must be another subdomain CNAME (cp.domain.com) as alias to the cPanel hosting server (in my case, HostGator's server br###.hostgator.com.br, masked for example purposes);
4. Google Apps Split Delivery must be correctly configured (Configure split delivery - Google Apps Administrator Help), with the subdomain described in step #3 as the destination (step 7 on this page);
5. on cPanel, use Local Server as the setting on the MX Records page for the root domain;
6. on cPanel, set a Domain Forwarder with "from: domain.com" and "to: gapps.domain.com";
7. 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.
Hi Lucas. You've lost me on step 5. If the MX records point to google as they should. What MX record setup are you referring to in step 5?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
Hi Lucas. You've lost me on step 5. If the MX records point to google as they should. What MX record setup are you referring to in step 5?
Hi Michael,

In the past, the email routing setting was configurable via the MX Records option in cPanel. It's since moved to cPanel >> Email Routing:

Email Routing - Version 74 Documentation - cPanel Documentation

In the step you referenced, Lucas is suggesting you change the email routing for the domain to Local Mail Exchanger.

Thank you.
 

ronskit

Member
Jan 2, 2009
8
0
51
Bangladesh
cPanel Access Level
Root Administrator
any new solution? Or when is cPanel implementing split delivery? This is very important as there is multiple new players in the email hosting market.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
any new solution? Or when is cPanel implementing split delivery? This is very important as there is multiple new players in the email hosting market.
Hi @ronskit,

I recommend opening a feature request for the specific integration you'd like to see made available in the cPanel UI:

Submit A Feature Request

You can post the link here once it's approved.

Thank you.
 

bnu102

Registered
Feb 21, 2019
1
0
1
PA, US
cPanel Access Level
Root Administrator
on cPanel, set a Domain Forwarder with "from: domain.com" and "to: gapps.domain.com";
Hi Lucas, This is a huge help. I'm so close, but I can't get past step 6. My domain.tld hosts our website, and if I add a domain forwarder to gapps.domain.tld, this redirects web traffic to a page that doesn't exist. Im sure I'm just missing something here. Any suggestions?
 
Last edited by a moderator:

brand_land

Active Member
Oct 18, 2018
40
2
8
Saudi Arabia
cPanel Access Level
Reseller Owner
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 rnviroment, these are the steps:

1. root domain (domain.com) must have MX records pointing to Google's MX servers;
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;
3. there must be another subdomain CNAME (cp.domain.com) as alias to the cPanel hosting server (in my case, HostGator's server br###.hostgator.com.br, masked for example purposes);
4. Google Apps Split Delivery must be correctly configured (Configure split delivery - Google Apps Administrator Help), with the subdomain described in step #3 as the destination (step 7 on this page);
5. on cPanel, use Local Server as the setting on the MX Records page for the root domain;
6. on cPanel, set a Domain Forwarder with "from: domain.com" and "to: gapps.domain.com";
7. 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.

I followed everything but I couldn't complete step 7, I have three options, replace recipient:.... , [email protected] domain and [email protected]
which one should I choose ? and what to write in the blank ?
Thank you
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
Hello Everyone,

Additional discussion of this topic is located on the thread linked below:


Thank you.
 
Status
Not open for further replies.