go-msgauth
go-msgauth copied to clipboard
🔏 A Go library and tools for DKIM, DMARC and Authentication-Results
I am reading the code and found that `queryDNSTXT` may produce the wrong txt record using the default resolver `net.LookupTXT` `dkim/query.go` line 88 wrote that ```go // Long keys are...
Rewrite of the Authentication-Results header parser for a complete RFC 8601 implementation. Ignore any header comments in parenthesis. Allow escape sequences and semi-colons in comments and quoted strings as values....
This adds support for both `y` and `s` flags. `s` is tested. wanted to confirm the approach to `y` flag.
When `s` is in a key's flags list, then: > Any DKIM-Signature header fields using the "i=" tag MUST have the same domain value on the right-hand side of the...
This makes debugging much easier. It can be difficult to debug issues as the verification struct does not contain all information used for the verification like the public key or...
We'll probably want to expose a `DefaultVerifyOptions` variable to allow users to easily customize the defaults (e.g. keeping the default `MaxVerifications` but change the default `LookupTXT`).
Arcoding to https://tools.ietf.org/html/rfc8601: ``` reasonspec = "reason" [CFWS] "=" [CFWS] value ; a free-form comment on the reason the given result ; was returned ``` ``` The "value" is as...
With https://github.com/emersion/go-msgauth/pull/29 we no longer generate broken signatures with FWS where they shouldn't be. However we could still improve our folding algorithm. Given these constraints: - We want to be...
We already have a DKIM milter, we probbaly want a DMARC milter too.