1 // Package dkim creates and verifies DKIM signatures, as specified in RFC 6376.
2 //
3 // # FAQ
4 //
5 // Why can't I verify a [net/mail.Message] directly? A [net/mail.Message]
6 // header is already parsed, and whitespace characters (especially continuation
7 // lines) are removed. Thus, the signature computed from the parsed header is
8 // not the same as the one computed from the raw header.
9 //
10 // How can I publish my public key? You have to add a TXT record to your DNS
11 // zone. See [RFC 6376 appendix C]. You can use the dkim-keygen tool included
12 // in go-msgauth to generate the key and the TXT record.
13 //
14 // [RFC 6376 appendix C]: https://tools.ietf.org/html/rfc6376#appendix-C
15 package dkim
16 17 import (
18 "time"
19 )
20 21 var now = time.Now
22 23 const headerFieldName = "DKIM-Signature"
24