add "mox dkim sign", useful for testing signatures

for issue #15
This commit is contained in:
Mechiel Lukkien
2023-03-07 21:59:55 +01:00
parent 39a097a5d4
commit a9ef0f2aea
2 changed files with 57 additions and 0 deletions

11
doc.go
View File

@ -50,6 +50,7 @@ low-maintenance self-hosted email.
mox dkim lookup selector domain
mox dkim txt <$selector._domainkey.$domain.key.pkcs8.pem
mox dkim verify message
mox dkim sign message
mox dmarc lookup domain
mox dmarc parsereportmsg message ...
mox dmarc verify remoteip mailfromaddress helodomain < message
@ -503,6 +504,16 @@ that was passed.
usage: mox dkim verify message
# mox dkim sign
Sign a message, adding DKIM-Signature headers based on the domain in the From header.
The message is parsed, the domain looked up in the configuration files, and
DKIM-Signature headers generated. The message is printed with the DKIM-Signature
headers prepended.
usage: mox dkim sign message
# mox dmarc lookup
Lookup dmarc policy for domain, a DNS TXT record at _dmarc.<domain>, validate and print it.