use emersion/go-msgauth for DKIM (#2242)
Some checks failed
build / build (push) Has been cancelled
ghcr / Build (push) Has been cancelled

Fixes #1041 (support ed25519-sha256 for DKIM)
This commit is contained in:
Shivaram Lingamneni 2025-04-07 00:24:08 -04:00 committed by GitHub
parent 9c3173f573
commit 68cee9e2cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1533 additions and 1504 deletions

View file

@ -233,7 +233,7 @@ func SendMail(config MailtoConfig, recipient string, msg []byte) (err error) {
}
}
if config.DKIM.Domain != "" {
if config.DKIM.Enabled() {
msg, err = DKIMSign(msg, config.DKIM)
if err != nil {
return