Metadata-Version: 2.5
Name: mailauth-records
Version: 0.1.0
Summary: Parse SPF, DMARC, MTA-STS and TLS-RPT DNS records into plain Python data (no dependencies)
Author-email: mailcheck <pypi-n5t87@tuxguard.com>, mailcheck <pypi-nrklb@tuxguard.de>
Maintainer-email: mailcheck <pypi-4fu64@tuxred.de>, mailcheck <pypi-btnse@ozapftis.cloud>
License-Expression: MIT
License-File: LICENSE
Keywords: dmarc,dns,email,mta-sts,spf,tls-rpt
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Internet :: Name Service (DNS)
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# mailauth-records

Parse mail-authentication DNS records into plain Python data. No dependencies.

```python
from mailauth_records import parse_dmarc, parse_spf

parse_dmarc("v=DMARC1; p=reject; rua=mailto:dmarc@example.org")
# {'v': 'DMARC1', 'p': 'reject', 'rua': ['mailto:dmarc@example.org'], 'sp': 'reject', 'adkim': 'r', 'aspf': 'r', 'pct': 100}

parse_spf("v=spf1 mx ip4:192.0.2.0/24 -all")["all"]   # '-'
```

Supported: SPF (RFC 7208), DMARC (RFC 7489), MTA-STS (RFC 8461), TLS-RPT (RFC 8460).
