wraps-team/wraps/ses-troubleshoot
Claude Code and agent skill by wraps-team/wraps
- community
Checking that the SKILL.md file is still in the repository.
Interactive SES deliverability troubleshooting. Diagnoses bounces, spam placement, send failures, account health, and complaint issues with targeted AWS CLI commands and ordered remediation steps.
Install
npx vskill@latest install wraps-team/wraps/ses-troubleshootSKILL.md
SES Deliverability Troubleshooter
Interactive diagnostician for AWS SES email delivery problems. When a user reports an email issue, identify the symptom, run targeted diagnostics, correlate findings, and provide ordered remediation.
How to Use This Skill
You are an interactive diagnostician. Do NOT dump all sections at the user. Instead:
- Identify the symptom (ask if unclear)
- Run the diagnostic commands for that symptom
- Interpret the results using the thresholds below
- Correlate multiple findings (problems are often related)
- Provide ordered remediation steps (most impactful first)
Step 1: Identify the Symptom
Ask which problem they're experiencing, then follow the matching branch:
- Emails bouncing → Bounce Diagnosis
- Emails going to spam/junk → Spam Diagnosis
- Emails not sending at all → Send Failure Diagnosis
- SES account under review/paused → Account Health Diagnosis
- High complaint rate → Complaint Diagnosis
- Delivery delays → Delay Diagnosis
Step 2: Gather Context
Before running diagnostics, gather the user's domain and region from Wraps metadata:
Metadata JSON paths:
- Region:
.region(top-level) - Domain:
.services.email.config.domain - Provider:
.provider - Account ID:
.accountId - Preset:
.services.email.preset - MAIL FROM subdomain:
.services.email.config.mailFromSubdomain
Then check AWS connectivity:
Primary Diagnostic Tool: email check
The Wraps CLI includes a comprehensive deliverability checker. Always use `--json` for structured output that's easy to interpret programmatically:
This single command checks all of the following:
- SPF: Record, validity, DNS lookup count (max 10),
allmechanism - DKIM: Automatically finds correct SES token-based selectors (NOT
selector1/2/3), key type and size - DMARC: Policy, alignment, reporting configuration
- MX Records: Existence, resolution, redundancy
- Mail Server TLS: STARTTLS support, TLS version on each MX server
- Reverse DNS: PTR records for all MX IPs
- IPv6: MX AAAA records and SPF IPv6 coverage
- Blacklists: 12+ domain blacklists, 30+ IP blacklists per MX IP (165+ total checks)
- Domain Age: Registration date, registrar, RDAP data
- DNSSEC, CAA, BIMI, MTA-STS, TLS-RPT: Advanced security checks
- Score: 0-100 score with grade (A/B/C/D/F), deductions, and bonuses
Key JSON paths in the response:
- Overall:
.score.grade,.score.finalScore,.score.deductions[] - SPF:
.spf.exists,.spf.valid,.spf.record,.spf.lookupCount,.spf.allMechanism - DKIM:
.dkim.found,.dkim.selectors[].valid,.dkim.selectors[].keyBits - DMARC:
.dmarc.exists,.dmarc.valid,.dmarc.policy,.dmarc.reportingEnabled - MX:
.mx.exists,.mx.records[],.mx.hasRedundancy - Blacklists:
.blacklist.overallClean,.blacklist.ipChecks.listed[],.blacklist.domainChecks.listed[] - Domain age:
.domainAge.ageInDays,.domainAge.createdAt
Grade thresholds:
- A (90-100): Excellent, all best practices followed
- B (75-89): Good, minor improvements possible
- C (60-74): Fair, notable issues to address
- D (40-59): Poor, significant problems
- F (0-39): Failing, critical issues
Use this command as the first diagnostic step for any symptom involving DNS, authentication, or reputation. It replaces the need for individual dig, nslookup, or manual DNS commands.
SES Account Diagnostics
For account-level checks, run get-account once and interpret multiple fields:
Key fields to inspect from the single response:
| Field | What it tells you | |
|---|---|---|
SendingEnabled | Whether the account can send at all | |
ProductionAccessEnabled | false = sandbox mode (200/day, verified recipients only) | |
EnforcementStatus | HEALTHY, PROBATION, or SHUTDOWN | |
Details.ReviewDetails.Status | PENDING, GRANTED, DENIED, or FAILED | |
SendQuota.Max24HourSend | Daily sending limit | |
SendQuota.SentLast24Hours | Emails sent in rolling 24h window | |
SendQuota.MaxSendRate | Max emails per second | |
SuppressionAttributes.SuppressedReasons | What gets auto-suppressed |
Important: get-account does NOT return bounce/complaint rate percentages directly. Those are available in the SES console's Reputation Dashboard or via Virtual Deliverability Manager metrics. The thresholds below are for interpreting those rates when the user provides them or when checking the console.
Bounce Diagnosis
Check 1: Run email check
Look at .score.grade and .score.deductions[] for DNS/authentication issues that could cause bounces.
Check 2: SES account status
Check EnforcementStatus and compare SentLast24Hours to Max24HourSend. If near the limit, sends are throttled or rejected.
Bounce rate thresholds (from SES console Reputation Dashboard):
| Rate | Status | Action | |
|---|---|---|---|
| < 2% | Healthy | Investigate individual cases | |
| 2-5% | Warning | Clean list, check recent imports | |
| 5-10% | Critical | Stop marketing sends, aggressive cleanup | |
| > 10% | Danger | SES will suspend account |
Check 3: Suppression list
If suppression list is large, it often indicates a bad import or list hygiene issue. To remove a false positive:
Bounce Remediation (ordered by impact)
- DNS issues → Fix SPF/DKIM/DMARC records based on
email checkfindings - Suppression list bloated → Clean suppression list + fix source data quality
- Bounce rate > 5% → Pause marketing sends, run engagement-based list cleanup
- Sending quota hit → Request limit increase in AWS Console → SES → Account Dashboard
- Bad import → Validate email addresses before importing (use verification service)
Spam Diagnosis
Check 1: Comprehensive email check
Interpret the JSON response - key things to look for:
SPF (.spf): Must include amazonses.com. Check .spf.allMechanism — ~ (soft fail) is the recommendation for a sending domain; DMARC does the enforcing. - (hard fail) is valid but rejects forwarded mail before DKIM is checked, so only prefer it when DMARC is already at quarantine/reject — or on a parked domain that never sends.
DKIM (.dkim): At least one valid selector with 2048-bit RSA key. The CLI automatically checks the correct SES token-based selectors (e.g., bsksdtrd66emmvw6frf33yopnumfs33r._domainkey), NOT the generic selector1/2/3 names.
DMARC (.dmarc): Policy should be quarantine or reject (NOT none). If .dmarc.policy is none, inbox providers may deprioritize emails. Recommended record:
Blacklists (.blacklist): Check .blacklist.overallClean. If false, inspect .blacklist.ipChecks.listed[] and .blacklist.domainChecks.listed[]. Note the priority field — high priority listings are critical, low priority (like cbl.anti-spam.org.cn) are less impactful but should still be addressed.
Domain Age (.domainAge.ageInDays): Domains < 30 days old have inherently low reputation.
Check 2: DMARC alignment and MAIL FROM
Check the MAIL FROM configuration from the SES identity:
Look at MailFromAttributes:
MailFromDomain: Should be a subdomain likemail.<domain>MailFromDomainStatus: Should beSUCCESS
If MAIL FROM is not configured, set it up with these DNS records:
- MX record:
mail.<domain> MX 10 feedback-smtp.<region>.amazonses.com - SPF record:
mail.<domain> TXT "v=spf1 include:amazonses.com ~all"
Check 3: Domain and account reputation
Check EnforcementStatus (HEALTHY, PROBATION, SHUTDOWN).
For new domains (< 30 days old), low reputation is expected. Follow warming schedule:
- Days 1-2: 200 emails
- Days 3-7: 500-1,000
- Days 8-14: 5,000
- Days 15-30: 10,000-25,000
Check 4: Content analysis
Ask the user for a recent email's HTML or subject line. Check for:
- Spam trigger words: FREE, WINNER, ACT NOW, LIMITED TIME, URGENT, $$
- Image-to-text ratio: Should be < 40% images
- URL shorteners: bit.ly, tinyurl are heavily penalized by spam filters
- Link count: More than 5-7 links looks spammy
- Missing plain text: HTML-only emails are flagged by some filters
- Missing unsubscribe: Required for marketing emails
Spam Remediation (ordered by impact)
- Fix DNS → Address all issues from
email checkdeductions - Set up custom MAIL FROM domain → Improves DMARC alignment
- Request blacklist delisting → Use the
delistUrlfrom listed entries, or visit the blacklist's website - Warm sending gradually → Follow warming schedule for new/cold domains
- Clean content → Remove spam triggers, add plain text version, reduce link count
- Add List-Unsubscribe header → Required for marketing, improves inbox placement
Send Failure Diagnosis
Check 1: SES account status (sandbox, quota, enforcement)
Check all of these from the single response:
ProductionAccessEnabled: Iffalse, account is in sandbox mode (200 emails/day, verified recipients only). Fix: Request production access in AWS Console → SES → Account Dashboard.SendQuota: IfSentLast24Hoursequals or exceedsMax24HourSend, all sends are rejected until the 24-hour window rolls.SendingEnabled: Iffalse, sending is disabled entirely.EnforcementStatus: If not HEALTHY, account may be restricted.
Check 2: Domain verification
Check VerifiedForSendingStatus. If false, the domain isn't verified:
- Run
npx @wraps.dev/cli email check <domain> --jsonto see DKIM status - DNS propagation takes 5-60 minutes
- Verify with:
npx @wraps.dev/cli email verify --domain <domain>
Check 3: IAM permissions
The IAM role must have ses:SendEmail and ses:SendRawEmail permissions. If using Vercel OIDC, verify the trust relationship is configured correctly.
Check 4: Configuration set
If this returns a 404, the configuration set is missing. Check event destinations:
Send Failure Remediation (ordered)
- Sandbox → Request production access via AWS Console
- Quota hit → Request limit increase, or spread sends over time
- Domain not verified → Check DKIM records with
email check, wait for propagation - Permissions → Run
npx @wraps.dev/cli email initto recreate/fix IAM role - Config set missing → Run
npx @wraps.dev/cli email upgradeto recreate
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/website/public/.well-known/skills/ses-troubleshoot/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 7
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wraps-team/wraps/ses-troubleshoot)