Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

bugfix: correct dkim_signing option "use_esld = false" to support third-level and more-level domains.

Jackddac4587b86c
diff --git a/core/internal/service/mail_service/fix.go b/core/internal/service/mail_service/fix.go
index c6ac69e4..b7a9e627 100644
--- a/core/internal/service/mail_service/fix.go
+++ b/core/internal/service/mail_service/fix.go
@@ -207,11 +207,8 @@ func FixRspamdDKIMSigningConfig(ctx context.Context) {
}
lines = append([]string{
- "sign_headers = \"from:sender:reply-to:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:content-language:resent-to:resent-cc:resent-from:resent-sender:resent-message-id:in-reply-to:references:list-id:list-help:list-owner:list-unsubscribe:list-subscribe:list-post:list-unsubscribe-post:disposition-notification-to:disposition-notification-options:original-recipient:openpgp:autocrypt\";",
- "\n",
- "use_esld = true;",
- "\n",
- "\n",
+ "sign_headers = \"from:sender:reply-to:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:content-language:resent-to:resent-cc:resent-from:resent-sender:resent-message-id:in-reply-to:references:list-id:list-help:list-owner:list-unsubscribe:list-subscribe:list-post:list-unsubscribe-post:disposition-notification-to:disposition-notification-options:original-recipient:openpgp:autocrypt\";\n\n",
+ "use_esld = false;\n\n",
}, lines...)
// Write the updated lines back to the DKIM signing configuration file