forwardemail.net
forwardemail.net copied to clipboard
fix: allowed missing `dmarc.pct` which defaults to 100
According to RFC 7489, pct is optional and defaults to 100. Current code reject DMARC records without pct=100, which is unnecessarily strict.
For example, gmail.com doesn't set pct=100 for its DMARC. Cloudflare's DMARC generator also omit it by default.
Checklist
- [x] I have ensured my pull request is not behind the main or master branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes along with context if necessary.