What the agent does
Sign-up confirmations, password resets and launch emails from the production site go to spam, or are rejected outright by Gmail and Yahoo, when the domain is not authenticated. Work out everything that sends email as the domain and give me the exact DNS records to add, with a safe path from monitoring to enforcement.
1. Find every sender
From the code and config, list every service that sends email as the domain: the transactional provider, the newsletter tool, support desk, billing receipts, the auth provider and any SMTP settings. Ask me about senders outside the code (Google Workspace, a CRM).
2. SPF
Write one
v=spf1TXT record for the root domain that includes each sender (for exampleinclude:_spf.google.com), ending in~all(or-allonce confirmed). Keep it under the limit of 10 DNS lookups; if senders push it over, propose sending some from a subdomain instead.3. DKIM
For each sender, list the DKIM records it asks for (usually CNAME or TXT records under
selector._domainkey) and where in its dashboard to find them. Make sure every sender signs with the site's domain, not its own.4. DMARC
Write a
_dmarcTXT record starting at monitoring:v=DMARC1; p=none; rua=mailto:<reports address>; adkim=r; aspf=r. Explain the path: read the reports for a couple of weeks, then move top=quarantine, thenp=rejectonce every legitimate sender passes.5. Check the code side
Make sure every email the app sends uses a From address on the authenticated domain, a working Reply-To, and a plain-text part as well as HTML.
Done means
- Every service that sends as the domain is listed.
- I have one SPF record under 10 lookups, the DKIM records per sender, and a DMARC record.
- I have a dated plan to move DMARC from p=none to quarantine and reject.
- Every email the app sends uses the authenticated domain and has a plain-text part.
Questions
Do I really need DMARC?
Gmail and Yahoo require SPF or DKIM for all senders, and DMARC for bulk senders, since 2024. Without it, more of your email lands in spam or bounces.
Why start with p=none?
p=none only collects reports, so nothing breaks while you find senders you forgot. Jumping straight to reject can block your own receipts or support emails.
What if my SPF record has too many lookups?
SPF fails above 10 DNS lookups. Send some mail from a subdomain (news.example.com) with its own records, or drop services you no longer use.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.