I have an issue with my email receiving and sending emails. I am unable to receive…
- User
I have an issue with my email receiving and sending emails. I am unable to receive emails and the ones that I send are bounced back. The error is via an email that I own the domain to and have set up the Gmail through google workspace. The issue is a DKIM related issue
- Assistant
If you're experiencing issues with receiving emails and sending emails get bounced back with a DKIM-related error on a Google Workspace (Gmail) setup for your custom domain, here are some steps and checks you can perform to troubleshoot and resolve the problem:
What is DKIM?
DKIM (DomainKeys Identified Mail) is an email authentication method that allows the receiver to check that an email claimed to have come from a specific domain was indeed authorized by the owner of that domain. It works by affixing a digital signature linked to your domain.
Common DKIM-related issues and how to resolve them:
1. Check your DKIM DNS record
-
Verify that your DKIM DNS TXT record is properly configured in your domain’s DNS settings.
-
Google Workspace typically uses a selector like
googleso your TXT record name could be something like:codegoogle._domainkey.yourdomain.com -
The TXT record value should be exactly as provided by Google Workspace.
-
DKIM records are case sensitive, so ensure no changes to case or unnecessary spaces have been made.
How to check:
-
Use online tools like MXToolbox DKIM Lookup (https://mxtoolbox.com/dkim.aspx) or dig commands like:
bashdig TXT google._domainkey.yourdomain.com -
Look for the correct Google Workspace public key in the TXT record.
2. Generate/Re-generate DKIM keys in Google Admin Console
- Go to Google Admin Console: https://admin.google.com/
- Navigate to Apps > Google Workspace > Gmail > Authenticate Email (or Set up DKIM)
- Check if DKIM is enabled.
- If you suspect corruption or issues with current keys:
- Generate a new DKIM key (2048-bit recommended).
- Save the new DNS TXT record Google provides.
- Publish that TXT record to your domain DNS.
- After propagation, enable the new DKIM key in Admin Console.
3. Verify DNS Propagation
- DNS changes may take some time to propagate.
- Use tools like https://dnschecker.org/ to ensure the DKIM TXT record is visible worldwide.
- If propagation is incomplete, DKIM validation will fail.
4. Check the bounce-back message details
- The bounce message might contain details about the DKIM failure (e.g., signature verification failed).
- Identify if the error is specifically referring to DKIM or if SPF or DMARC errors appear too.
5. SPF and DMARC Records
Even though the specific error mentions DKIM, SPF and DMARC records are also important:
-
Make sure SPF record authorizes Google servers to send mail for your domain.
Example SPF:
codev=spf1 include:_spf.google.com ~all -
Consider setting up a DMARC policy that aligns with your SPF and DKIM settings.
6. Mail Client and Sending Method
- If sending through SMTP clients (e.g., Outlook, other apps), ensure they use Google Workspace SMTP properly.
- If sending via a 3rd party or website, the DKIM signature might be missing or invalid.
Summary and Next Steps
- Verify and Correct your DKIM DNS TXT record.
- Re-generate and re-enable DKIM keys via Google Admin Console if necessary.
- Check SPF and DMARC DNS records for completeness.
- Wait for DNS propagation (up to 48 hours in some cases).
- Test sending mail again and review any bounce-back message for specifics.
- If issues persist, consider reaching out to Google Workspace support.
If you want, you can share the exact bounce-back error message (mask any sensitive details) and I can help analyze it further.
-
- User
The host for this domain is squarespace and under the DNS settings there are multiple sections to choose from; Squarespace Domain Connect, Google Workspace, Custom Records and Google Records. uNDER WHICH SECTION SHOULD TNE NEW DNS RECORD BE APPLIED?
- Assistant
Great question!
Since your domain is hosted on Squarespace, and you're managing DNS records from their interface—which offers multiple sections like Squarespace Domain Connect, Google Workspace, Custom Records, and Google Records—here’s how you should approach adding a new DKIM DNS TXT record:
Where to add the DKIM TXT record on Squarespace?
-
Do NOT add DKIM records under "Squarespace Domain Connect" or "Google Workspace" sections unless Squarespace explicitly indicates these sections are for automated record management that includes DKIM (typically those sections involve automated setup or predefined records for simpler configuration).
-
For DKIM (or any custom TXT record that you need to add manually), use the "Custom Records" section.
Why "Custom Records"?
- DKIM requires you to add a TXT record with a specific DNS host/name (e.g.,
google._domainkey) and a value (the long DKIM public key). - The "Custom Records" section is meant for adding any custom or manual DNS entries that aren’t automatically managed by Squarespace’s built-in integrations.
- The "Google Workspace" or "Google Records" sections typically contain DNS records that Squarespace adds automatically when you connect Google Workspace through their integration, but adding new DKIM TXT records is generally manual.
Steps:
- Log in to your Squarespace account and go to Settings > Domains.
- Select your domain.
- Navigate to DNS settings.
- Find and open the Custom Records section.
- Add a new TXT record:
- Host/Name:
google._domainkey(or whatever selector Google gave you). - Value: Paste the entire DKIM public key as provided by the Google Admin Console.
- Host/Name:
- Save the record.
After adding:
- Wait for DNS propagation (can take a few minutes to 48 hours).
- Verify the record using online tools (e.g., MXToolbox DKIM Lookup).
- In Google Admin Console, enable DKIM signing using the new key.
- Test sending/receiving emails again.
Summary:
Add the DKIM TXT record under the "Custom Records" section in your Squarespace DNS Settings.
If you want, I can help guide you step-by-step through the Squarespace interface or check the exact syntax of the DKIM record you need to add. Just let me know!
-