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

dreambladeflagee39364c0800
diff --git a/core/internal/service/mail_service/fix.go b/core/internal/service/mail_service/fix.go
index 53939a4f..5ce9a107 100644
--- a/core/internal/service/mail_service/fix.go
+++ b/core/internal/service/mail_service/fix.go
@@ -158,7 +158,7 @@ func FixRspamdDKIMSigningConfig(ctx context.Context) {
}
if lineBegin > 0 {
- lines = lines[lineBegin : lineLen-1]
+ lines = lines[lineBegin:lineLen]
}
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\n"}, lines...)