Metadata-Version: 2.4
Name: mxwarden-spec
Version: 1.1.0
Summary: Zero-dependency RFC 7208 SPF 10-lookup CI gate, DMARC alignment & RFC 5322 header auditor
Author-email: MXWarden Engineering <support@mxwarden.com>
License: MIT
Project-URL: Homepage, https://mxwarden.com
Project-URL: Repository, https://github.com/lerenhuan-hash/mxwarden-spec
Project-URL: Documentation, https://mxwarden.com/llms-full.txt
Project-URL: Header X-Ray, https://mxwarden.com/#xray
Project-URL: BIMI SVG Converter, https://mxwarden.com/tools/bimi-svg-tiny-ps-converter
Keywords: spf,dmarc,dkim,email-deliverability,dns,rfc7208,rfc7489,bimi,mta-sts
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Internet :: Name Service (DNS)
Classifier: Topic :: Security
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# mxwarden-spec — Zero-Dependency SPF 10-Lookup, DMARC & Header Alignment CI Gate

Prevent accidental corporate email outages in CI/CD before a 4th SaaS `include:` pushes your domain past RFC 7208's 10-DNS-lookup `PermError` limit, or diagnose `SPF/DKIM Auth PASS + Alignment FAIL` header traps offline.

- **Zero external dependencies** (pure Python 3.9+ stdlib & pure Node.js 18+ ESM)
- **RFC 7766 TCP fallback** for large multi-TXT enterprise domains (`>512B` / `>4096B`)
- **RFC 7208 void-lookup counter** (`>2` `NXDOMAIN` lookups fail before hitting production)
- **Offline RFC 5322 Header Alignment Inspector** (`--header-file sample.eml`)

## Quick Start

### Python (`pipx` / `pip`)
```bash
pipx run mxwarden-spec company.com --require-dmarc-enforce
mxwarden-spec --header-file raw_email.eml
```

### Node.js (`npx`)
```bash
npx mxwarden-spec company.com --max-lookups 9 --require-dmarc-enforce
npx mxwarden-spec --header-file raw_email.eml --json
```

### GitHub Actions Cron / PR Gate
```yaml
name: Domain Email Auth Gate
on:
  schedule:
    - cron: "0 8 * * 1"
  workflow_dispatch:
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - run: npx mxwarden-spec yourcompany.com --max-lookups 9 --require-dmarc-enforce
```

## Live Web Diagnostics & Free Browser Utilities
Need automatic 15-minute CIDR-tree SPF compression, 3-Bucket DMARC RUA triage, Hosted MTA-STS, or browser-local BIMI SVG Tiny 1.2 PS conversion?
- [MXWarden 1-Second Recursive Scanner & Header X-Ray](https://mxwarden.com/)
- [Free Browser-Local BIMI SVG Tiny 1.2 PS Converter](https://mxwarden.com/tools/bimi-svg-tiny-ps-converter)
- [Free Browser-Local DMARC XML / .GZ / .ZIP Reader](https://mxwarden.com/tools/dmarc-xml-report-reader)
- [Complete Technical Specification (`/llms-full.txt`)](https://mxwarden.com/llms-full.txt)

## License
MIT
