If you are a Google Workspace user and use Google Calendar, you may have noticed some DMARC fails on your DMARC reports.
Here’s a sample record extracted by DMARCPal Record Explorer showing the issue:
The problem is caused by Google sending those emails from domains that don’t align with the “From” address (blurred in the screenshot). It usually happens with Google Workspace users who reply to calendar invitations. Without alignment, you don’t get a pass from DMARC.
Let’s analyze this record a little more to understand what’s going on.
As we can see, the SPF domain used by Google is calendar-server.bounces.google.com
. SPF checks indeed pass for those emails.
However, this domain is different from the one present in the “From“ header. This will fail DMARC alignment.
Google adds two DKIM signatures to the email: one from its own google.com domain, another from XXXXX.20210112.gappssmtp.com (where XXXXX is your Google Workspace domain).
Here both DKIM signatures validate, hence DKIM is a pass for the messages. However, the domains checked aren’t the same as the one in the “From” line. This also will fail DMARC alignment.
For DMARC to pass, domain alignnment has to happen.
In other words, the domains authenticated by SPF and DKIM must be the same (for strict alignment), or be a sub-domain (relaxed alignment) of the domain in the “From” header.
Under certain conditions, Google Calendar invitation replies pass both SPF and DKIM domain checks. However, neither domains are in alignment with the “From” line.
That’s why DMARC fails.
You need to do two things:
Log in to your Google Workspace admin console at https://admin.google.com (opens a new tab)
Navigate to Google Workspace > Settings for Gmail > Authenticate email
Copy the DKIM record Google will use to sign your emails
Log in to your DNS hosting, and add the DKIM record copied above as a TXT record at google._domainkey.
Log in to your Google Workspace admin console at https://admin.google.com (opens a new tab)
Navigate to Google Workspace > Settings for Gmail > Authenticate email
Click “Start Authentication”
This last step is important in that apparently this is what enables Google apps to generate DKIM signatures using your domain.
Just adding the DKIM record to your DNS is not enough to enable DKIM signatures using your domain, at least for Google Calendar.
We have seen Google Workspace users just doing that: they set up the DKIM record, they see DMARC checks passing for Gmail, and then they assume everything is okay.
What they don’t realize is that DMARC is passing only because Gmail uses the domain in the Return-Path, which makes SPF pass, and be in alignment. When they don’t start auhentication, DKIM indeed validates, but this happens using Google domains’ signatures, which don’t align with your domain. This makes DMARC fail.
See Your Google Workspace DKIM setup may be broken (and you may not know it) for more details about this issue.
For more details about setting up DKIM with Google Workspace, see Turn on DKIM for your domain page.