Skip to main content

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

CI PyPI npm License: MIT

Prevent accidental corporate email outages in CI/CD before a new SaaS include: pushes your domain past RFC 7208's 10-DNS-lookup PermError ceiling, pre-flight proposed SPF records in Terraform/DNSControl PRs with zero API keys, or diagnose SPF/DKIM Auth PASS + Alignment FAIL header traps offline.

  • Zero external dependencies & zero API key required (pure Python 3.9+ stdlib & pure Node.js 18+ ESM)
  • Composite GitHub Action (action.yml) with automatic Markdown Job Summary ($GITHUB_STEP_SUMMARY)
  • Pre-flight SPF PR Gate (--spf-record) for DNS-as-Code pipelines before pushing DNS changes
  • 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 / RFC 7489 Header Alignment Inspector (--header-file sample.eml)

1. GitHub Actions (1-Line Drop-In, Zero API Key)

Live Domain Schedule / PR Guardrail

name: Domain Email Auth Gate
on:
  schedule:
    - cron: "0 8 * * 1"
  workflow_dispatch:
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: lerenhuan-hash/mxwarden-spec@v1.2.0
        with:
          domains: "example.com mail.example.com"
          max-lookups: "9"
          require-dmarc-enforce: "true"

Pre-Flight Proposed SPF Record (Terraform / DNSControl / octoDNS PRs)

      - uses: lerenhuan-hash/mxwarden-spec@v1.2.0
        with:
          spf-record: "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
          max-lookups: "9"

Offline Email Header Alignment Audit

      - uses: actions/checkout@v4
      - uses: lerenhuan-hash/mxwarden-spec@v1.2.0
        with:
          header-file: "examples/sample_aligned_header.eml"

2. Local CLI Quick Start

Python (pipx / pip)

pipx run mxwarden-spec company.com --require-dmarc-enforce
mxwarden-spec --spf-record "v=spf1 include:_spf.google.com ~all" --max-lookups 9
mxwarden-spec --header-file raw_email.eml --json

Node.js (npx)

npx mxwarden-spec company.com --max-lookups 9 --require-dmarc-enforce
npx mxwarden-spec --header-file raw_email.eml --json

3. RFC & Troubleshooting Reference Specifications (docs/)


4. Live Web Diagnostics, Browser Extension & Free Browser-Local Utilities

Need automatic 15-minute Anycast CIDR-tree SPF compression, calm 3-Bucket DMARC RUA monitoring, 1-click Hosted MTA-STS, or white-label MSP executive PDFs?

License

MIT

Metadata

Release files for mxwarden-spec 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mxwarden-spec 1.2.0
File Size Uploaded Provenance Actions
mxwarden_spec-1.2.0.tar.gz 10.3 kB Without provenance Details for mxwarden_spec-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mxwarden-spec 1.2.0
File Interpreter ABI Platform Actions
mxwarden_spec-1.2.0-py3-none-any.whl Python 3 none any Details for mxwarden_spec-1.2.0-py3-none-any.whl

Total release size: 19.3 kB

Release files / mxwarden_spec-1.2.0.tar.gz

Download URL mxwarden_spec-1.2.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
67e8a6e7b7d67bb22ec978e8aa542f00f18b3d4031d05d65241755580a25f888
BLAKE2b-256 checksum
How to use checksums
52a51e11a6b8805757d22d8033cd28c958d945203367acf8616271538c187312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / mxwarden_spec-1.2.0-py3-none-any.whl

Download URL mxwarden_spec-1.2.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8243c13331b9dfbb706305d3e495b31f9ac13f35998ce2ab250fa9395136a504
BLAKE2b-256 checksum
How to use checksums
a4e823654629017e57f4a88cbd63e43d0c13267ff9afcf92f55617c48487b2c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for mxwarden-spec 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page