Gmail Warning Fix - Quick Summary¶
This document provides a quick summary of the Gmail warning fix. For detailed instructions, see the documentation links below.
Problem¶
Gmail shows “Be careful with this message” warning for emails sent from your SES setup.
Root Cause¶
Missing DMARC record - This is the primary issue causing the Gmail warning.
Current Status (as of 2026-02-01)¶
Authentication |
Status |
Details |
|---|---|---|
SPF |
PASS |
|
DKIM |
Unknown |
Need to verify in AWS SES Console |
DMARC |
MISSING |
This is causing the Gmail warning |
What Has Been Done¶
Code Improvements¶
Created
aclarknet/email_utils.pywith improved email sending functionsUpdated
db/signals.pyto use new email utilities with better headersUpdated
cms/views.pyto use new email utilities with proper Reply-To headers
New headers added to all emails:
Reply-To: Proper reply addressX-Mailer: aclark.net: Identifies your applicationX-Auto-Response-Suppress: OOF, AutoReply: Prevents auto-reply loopsPrecedence: bulk: Indicates automated mail
Diagnostic Tools¶
Created
scripts/check_email_auth.sh- Check your current DNS authentication statusCreated
scripts/test_email_headers.py- Send test emails to verify authentication
Documentation¶
Fix Gmail Warning - Step-by-step guide
Email DNS Records Reference - Complete DNS records reference
Email Utilities Reference - Email utilities API reference
Email Authentication Explained - Understanding email authentication
What You Need to Do¶
CRITICAL: Add DMARC Record (5 minutes)¶
Add this TXT record to your DNS provider:
- Name/Host:
_dmarc.aclark.net(or just_dmarc)- Type:
TXT
- Value:
v=DMARC1; p=quarantine; rua=mailto:aclark@aclark.net; pct=100- TTL:
3600 (or default)
Important: Verify DKIM in AWS SES¶
Navigate to Configuration → Verified identities
Check if
aclark.net(the domain) is listedIf NOT listed:
Click Create identity
Select Domain
Enter
aclark.netEnable Easy DKIM
AWS will provide 3 CNAME records
Add all 3 CNAME records to your DNS
Example CNAME records (your tokens will be different):
Name: abc123._domainkey.aclark.net
Value: abc123.dkim.amazonses.com
Name: def456._domainkey.aclark.net
Value: def456.dkim.amazonses.com
Name: ghi789._domainkey.aclark.net
Value: ghi789.dkim.amazonses.com
Quick Start Commands¶
Check current authentication status:
./scripts/check_email_auth.sh
Send test email (after DNS changes):
python scripts/test_email_headers.py your-email@gmail.com
Verify DNS records manually:
# Check DMARC
dig TXT _dmarc.aclark.net +short
# Check SPF
dig TXT aclark.net +short | grep spf
# Check DKIM (replace <token> with actual token from AWS)
dig CNAME <token>._domainkey.aclark.net +short
Timeline¶
Now: Add DMARC TXT record to DNS (5 minutes)
Within 1 hour: Verify domain in AWS SES and add DKIM CNAME records
1-48 hours: Wait for DNS propagation
After propagation: Run test script and verify authentication
Expected Results¶
After completing all steps:
SPF: PASS
DKIM: PASS
DMARC: PASS
No more Gmail warnings
Better email deliverability overall
Documentation¶
For detailed information, see:
Fix Gmail Warning - Complete step-by-step guide
Email DNS Records Reference - DNS records reference
Email Utilities Reference - Email utilities reference
Email Authentication Explained - Understanding email authentication
AWS SES Email Configuration Guide - AWS SES configuration guide
Next Step¶
Add the DMARC TXT record to your DNS provider now! This is the most critical fix.