set correct local account when adding a message to the queue

all dsns were going to the postmaster account...
This commit is contained in:
Mechiel Lukkien 2024-02-20 15:02:47 +01:00
parent cb5097714b
commit dc83ad1df5
No known key found for this signature in database

View file

@ -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 { func MakeMsg(senderAccount string, sender, recipient smtp.Path, has8bit, smtputf8 bool, size int64, messageID string, prefix []byte, requireTLS *bool) Msg {
now := time.Now() now := time.Now()
return Msg{ return Msg{
SenderAccount: mox.Conf.Static.Postmaster.Account, SenderAccount: senderAccount,
SenderLocalpart: sender.Localpart, SenderLocalpart: sender.Localpart,
SenderDomain: sender.IPDomain, SenderDomain: sender.IPDomain,
RecipientLocalpart: recipient.Localpart, RecipientLocalpart: recipient.Localpart,