From dc83ad1df55914c763d5235beaa8364e806df05f Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Tue, 20 Feb 2024 15:02:47 +0100 Subject: [PATCH] set correct local account when adding a message to the queue all dsns were going to the postmaster account... --- queue/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue/queue.go b/queue/queue.go index ee7fc66..ac5d340 100644 --- a/queue/queue.go +++ b/queue/queue.go @@ -211,7 +211,7 @@ func Count(ctx context.Context) (int, error) { func MakeMsg(senderAccount string, sender, recipient smtp.Path, has8bit, smtputf8 bool, size int64, messageID string, prefix []byte, requireTLS *bool) Msg { now := time.Now() return Msg{ - SenderAccount: mox.Conf.Static.Postmaster.Account, + SenderAccount: senderAccount, SenderLocalpart: sender.Localpart, SenderDomain: sender.IPDomain, RecipientLocalpart: recipient.Localpart,