mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
for localserve delivery from queue, use the recipient address for finding delivery rules, not sender address
This commit is contained in:
parent
0047f09e2b
commit
71c0bd2dd1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue