From 71c0bd2dd185d602bd5a6a1029549c1ce7974f3f Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sun, 21 Apr 2024 15:07:50 +0200 Subject: [PATCH] for localserve delivery from queue, use the recipient address for finding delivery rules, not sender address --- queue/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue/queue.go b/queue/queue.go index d16f157..707bafb 100644 --- a/queue/queue.go +++ b/queue/queue.go @@ -1557,7 +1557,7 @@ func deliver(log mlog.Log, resolver dns.Resolver, m0 Msg) { var err error var mb store.Mailbox acc.WithWLock(func() { - dest := conf.Destinations[qm.Sender().String()] + dest := conf.Destinations[qm.Recipient().String()] err = acc.DeliverDestination(log, dest, &dm, msgFile) if err != nil { err = fmt.Errorf("delivering message: %v", err)