# DNS Email Security Check

> Audit SPF, DMARC, and DKIM records to fix email deliverability and prevent domain spoofing.

DNS Email Security Check is a paid AI agent skill on Agensi by Nenad Zivotic, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dns-email-security-check
- Tags: security, devops, dns-security, email-deliverability, spf-dmarc-audit, email-security, dkim

## About this skill

Mail landing in spam or concerns about domain spoofing often stem from misconfigured DNS records. This skill audits the public email security posture of a domain you own to identify critical vulnerabilities in SPF, DMARC, and DKIM configurations. It replaces manual lookups and RFC cross-referencing with a systematic scan and a prioritized remediation plan.

### What it does
- **SPF Audit** identifies missing records, multiple conflicting records, and policy strength, including the 10-DNS-lookup budget limit.
- **DMARC Analysis** checks policy enforcement levels (reject, quarantine, none) and aggregate reporting (rua) configurations.
- **DKIM Detection** probes common selectors to verify public key availability and revocation status.
- **MX Health Check** validates mail exchanger records to ensure they are resolvable and not pointing to dead hosts.
- **TLS Inspection** optionally checks port 443 for certificate expiry and handshake validity.

### How it works
1. **Execution** involves running the bundled `check.mjs` script via Node.js for a specific domain with optional flags for TLS or custom selectors.
2. **Analysis** parses the resulting JSON report, which categorizes findings into pass, warn, fail, or unknown statuses.
3. **Triage** prioritizes critical anti-spoofing failures and delivery blockers over policy hardening and reporting upgrades.
4. **Remediation** provides the specific TXT records and DNS changes required to fix identified issues.

### Frameworks & tools
Built with a zero-dependency Node.js script (requires Node 18+). It uses standard DNS query types (TXT, MX, A/AAAA) and basic TLS handshakes.

### Why this beats prompting it yourself
Generic LLM prompts often hallucinate SPF lookup counts or fail to catch the nuance of `~all` versus `-all` policies. This skill uses a local script to fetch live DNS data, ensuring the advice is based on your actual current records rather than outdated training data.

### Use cases
- **Fixing Spam Issues** by identifying SPF PermErrors caused by exceeding the 10-lookup limit.
- **Hardening Anti-Spoofing** by moving DMARC policies from monitoring to enforcement.
- **Pre-deployment Audits** to verify new mail provider records before going live.
- **Automated Monitoring** by integrating the script into CI/CD to alert on certificate expiry or DNS regressions.

### Known limitations
Does not perform zone transfers or brute-force subdomain enumeration. DKIM status is marked as undetermined if common selectors are not found, as selectors can be any arbitrary string.

## Requires

- Node.js 18+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the DNS Email Security Check skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problems does this DNS email security check solve?

This skill solves email deliverability issues, such as mail being flagged as spam, and prevents domain spoofing by identifying misconfigured SPF, DKIM, and DMARC records that generic AI prompts often overlook.

### What are the technical requirements for running this skill?

The skill requires Node.js 18 or higher; it is designed to work with AI agents that have terminal access or can execute JavaScript/Node.js scripts to perform live DNS queries.

### What exactly is included in the purchase?

You will receive the core `check.mjs` execution script, a comprehensive JSON reporting module, and a prioritized remediation guide that translates technical failures into specific DNS TXT record fixes.

### Can I use this skill for automated monitoring instead of just one-off checks?

Yes, you can integrate the script into CI/CD pipelines or cron jobs to automate audits, allowing your agent to alert you if a certificate expires or if a DNS change causes a deliverability regression.

### Why might the DKIM check show as 'undetermined' even if I have records set up?

Since DKIM selectors can be any string, the skill probes common default selectors; if your domain uses a custom, non-standard selector, the DKIM status may be marked as undetermined unless you specify the selector flag.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
