Split Delivery with Google Workspace
What is "Split Delivery"?
Split Delivery is a common technique used when two seperate Mailservers handle one signular E-Mail Domain.
Example: Mailserver 1 handles user@domain.com and Mailserver 2 handles servicemail@domain.com
What is required
- Two seperate Mailservers (Google Workspace / G-Suite and Mailcow in this Case)
- Access and Understanding to DNS Records
- Understanding of DKIM/SPF
- Understanding of Mail Routing Policies
- Administrator Access to Mailcow
- Administrator Access to Google Workspace Admin / Google Admin Console
1. Mailcow Configuration
- Open Mailcow Admin UI
- Go to System - Configuraiton
- Go to Options - Forwarding Hosts
- Add public Mailserver IPs from Google here
108.177.16.0/24108.177.17.0/24142.250.220.0/24142.250.221.0/242600:1901:101::0/1262600:1901:101::4/1262600:1901:101::8/1262600:1901:101::c/1262600:1901:101::10/1262600:1901:101::14/126209.85.128.0/1774.125.0.0/1666.249.80.0/20173.194.0.0/1664.233.160.0/19172.217.0.0/16
2. Google Configuration
This Part is in German, English Names might be slightly different
2.1 Configure Mailcow Forwarding Host
- Open Google Admin Console
- Go to Apps - Google-Workspace - Gmail
- Click Hosts
- Click Route hinzufügen
- Set Name, Hostname and Port of your second Mailserver to which E-Mails will be forwarded to
- Enable TLS requirements and Host check. While not necessary, it is recommended
2.2 Configure Mail List
This Step creates a fixed List of Mail Addresses that will be forwarded. Will this is not strictly necessary, its a absolute way to make sure they're being forwarded
- Open Google Admin Console
- Go to Apps - Google-Workspace - Gmail
- Click Routing
- Click Adresslisten verwalten
- Click Adressliste hinzufügen
- Add all your Mail-Addresses
- Uncheck Authentifizierung erforderlich
2.3 Add Route to Google
- Open Google Admin Console
- Go to Apps - Google-Workspace - Gmail
- Click Routing
- Click Routing-Regel hinzufügen
- Set Name
- Select Eingehend and Intern - Empfangen
- (Optional) Enable Benutzerdefinierten Betreff voranstellen and add
[G-SUITE-RELAY] - Enable Route ändern and select your Mailserver Host created in 2.1
- Click Optionen einblenden
- Select Unbekannte/Catchall Konten
3. DNS Configuration
3.1 Add Google Mailserver' MX-Records
Based on Hetzner DNS
| Record Type | Domain | Value | Priority |
MX |
@ |
aspmx.l.google.com. |
1 |
MX |
@ |
alt1.aspmx.l.google.com. |
5 |
MX |
@ |
alt2.aspmx.l.google.com. |
5 |
MX |
@ |
alt4.aspmx.l.google.com. |
10 |
MX |
@ |
alt3.aspmx.l.google.com. |
10 |
3.2 Add SPF/DKIM Records
3.2.1 DKIM
- Open Google Admin Console
- Go to Apps - Google-Workspace - Gmail
- Click E-Mail authentifizieren
- Select your Mail Domain
| Record Type | Domain | Value from Google |
| TXT | google._domainkey | v=DKIM1; k=rsa;.... |
3.2.2 SPF
You should edit your existing SPF Record from Mailcow, do not create a new one!
v=spf1 include:_spf.google.com ip4:<mailserver-ip> -all
include:_spf.google.com is the important part here. You simply include the SPF Configuration from Google
No Comments