SPLIT DELIVERY

-----

Split Delivery configuration. Gsuite

mail dual delivery Gsuite

Apps > Google Workspace > Settings for Gmail > Hosts

Apps > Google Workspace > Settings for Gmail > Default routing

\

Domains-> Add a domain alias


Webmail:  www.gmail.com




​​

Name/Host/Alias

Time to Live (TTL*)

Record Type

Priority

Value/Answer/Destination

Blank or @

3600

MX

1

     aspmx.l.google.com​.​

Blank or @

3600

MX

5

      alt1.aspmx.l.google.com.

Blank or @

3600

MX

5

alt2.aspmx.l.google.com.

Blank or @

3600

MX

10

alt3.aspmx.l.google.com.

Blank or @

3600

MX

10

alt4.aspmx.l.google.com.






















Add new MX records


MX SERVER ADDRESS                                  PRIORITY

ASPMX.L.GOOGLE.COM.                                       1                        

ALT1.ASPMX.L.GOOGLE.COM.                             5

ALT2.ASPMX.L.GOOGLE.COM.                             5

ALT3.ASPMX.L.GOOGLE.COM.                             10                    

ALT4.ASPMX.L.GOOGLE.COM.                             10



 MX record for dual delivery ...

            1.  Gsuite MX 

                gsuite              3600 IN MX   Priority: 1      Destination: aspmx.l.google.com

                gsuite              3600 IN MX   Priority: 5      Destination: alt1.aspmx.l.google.com

                gsuite             . 3600 IN MX   Priority: 5      Destination: alt2.aspmx.l.google.com

                gsuite              3600 IN MX   Priority: 10    Destination: aspmx2.googlemail.com

                gsuite              3600 IN MX   Priority: 10    Destination: aspmx3.googlemail.com

 2.  Gsuite MX 

                gsuite.orang.com. 3600 IN MX   Priority: 1      Destination: aspmx.l.google.com

                gsuite.orange.com. 3600 IN MX   Priority: 5      Destination: alt1.aspmx.l.google.com

                gsuite.orang.com. 3600 IN MX   Priority: 5      Destination: alt2.aspmx.l.google.com

                gsuite.orang.com. 3600 IN MX   Priority: 10    Destination: aspmx2.googlemail.com

                gsuite.orang.com. 3600 IN MX   Priority: 10    Destination: aspmx3.googlemail.com

SPF Record:    v=spf1 include:_spf.worldcm.net include:_spf.google.com ~all

                                 v=spf1 +ip4:103.182.196.101 include:_spf.google.com include:spf.spam.cloud ~all

SPF Record:   v=spf1 include:_spf.google.com ~all

       

               wwww-IP       Mail -IP         Gsuite

v=spf1 +a +mx +ip4:166.62.30.148 +ip4:202.22.199.148 include:_spf.google.com ~all


Example DNS configuration


Blank or @ A NA 216.239.38.21

Blank or @ MX 1 ASPMX.L.GOOGLE.COM.

Blank or @ MX 5 ALT1.ASPMX.L.GOOGLE.COM.

Blank or @ MX 5 ALT2.ASPMX.L.GOOGLE.COM.

Blank or @ MX 10 ASPMX2.GOOGLEMAIL.COM.

Blank or @ MX 10 ASPMX3.GOOGLEMAIL.COM.

mail         CNAME NA ghs.googlehosted.com.

Blank or @ TXT NA google-site-verification=6tTalLzrBXBO4Gy9700TAbpg2QTKzGYEuZ_Ls69jle8

Blank or @ TXT NA v=spf1 include:_spf.google.com ~all

www       CNAME NA ghs.googlehosted.com.



SPF:Name: @Content: v=spf1 include:_spf.google.com ~all
DKIM:Name: google._domainkeyContent: Long TXT as shown in the tutorial.
DMARK:Name: _dmarcContent: v=DMARC1; p=none; rua=mailto:name@yourbusiness.com

----------------------------X----------------------------------                                                    

Host Settings

Let us now get through the steps to build up a Split Delivery configuration.

 

 

 

 

Routing Settings:

Once the host details are saved, we need to proceed with adding the routing settings.

 

 

 

 

 

This completes the split delivery setup for your domain name. Going forward if any email is sent, the email will be first routed to your Gsuite package. If the account exists under Gsuite the mail will be delivered successfully.

In case the email account does not exist, the mail will be routed to your Business/ Enterprise Email server and the message will be delivered to the intended recipient.

 

DNS Records:

SPF Record:    v=spf1 include:_spf.mailhostbox.com include:_spf.google.com ~all

                                             --------------------------------------------X----------------------------------------------------

Create a new host with these settings:

2. Select G Suite > Settings for Gmail > Advanced settings. Click on the Default routing tab and then Add Setting

3. Configure the alternate route for email addresses that are not managed by G Suite.  This allows you to add and remove addresses in Plesk without having to configure anything else through the G Suite interface. 

 

4. SSH to your server and modify the main.cf file so that Postfix does not check outgoing email against your domains and attempt to route mail locally. You must do this, or attempting to send mail from your VPS to any Gmail managed addresses that are @yourdomain.com will fail. This is because Postfix will first look for the address on the local server.

vim etc/postfix/main.cf 

Add the line that tells SMTP to not reject email that matches local recipients. The value is supposed to be blank.

local_recipient_maps = 

save and quit

:wq

Reload postfix with the updated configuration. 

postfix reload

---