On Thu, Jun 23, 2022 at 09:01:54AM -0600, Austin Witmer wrote:

> When I move all of my domains to local instead of virtual, the problem
> goes away. Any idea why that would happen?

You really should read the Postfix book by Ralf and Patrick, or
at least understand the VIRTUAL_README tutorial.

All domains listed in mydestination have the same user namespace, but
IIRC "mailbox_transport" preserves the original domain part (unless
aliases(5) rewrites the recipient).

With virtual mailbox domains, each domain has its set of valid users,
and again the domain part is preserved unless the recipient is rewritten
via the virtual(5) alias table.

> > On Jun 23, 2022, at 8:42 AM, Jaroslaw Rafa <[email protected]> wrote:
> > 
> > Dnia 23.06.2022 o godz. 08:24:36 Austin Witmer pisze:
> >> Jun 23 04:58:23 mail postfix/pipe[170350]: F414717A09F: 
> >> to=<[email protected]>, relay=gpgit-pipe, delay=1, delays=0.34/0/0/0.68, 
> >> dsn=2.0.0, status=sent (delivered via gpgit-pipe service)
> > 
> > Here, the message is correctly addressed to [email protected] ie. gpgit-pipe,
> > whatever that is, receives message addressed to [email protected]
> > 
> >> Jun 23 04:58:23 mail dovecot: lmtp(170398): Connect from local
> >> Jun 23 04:58:24 mail postfix/smtpd[170392]: disconnect from 
> >> localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
> >> Jun 23 04:58:24 mail amavis[151849]: (151849-13) Passed CLEAN 
> >> {RelayedInbound}, [127.0.0.1] <[email protected]> -> 
> >> <[email protected]>, Message-ID: 
> >> <[email protected]>, mail_id: 
> >> H-nHD4oOTH7c, Hits: -, size: 1963, queued_as: EF1F417A09F, 
> >> dkim_sd=mail:outsidedomain.com, 54 ms
> >> Jun 23 04:58:24 mail postfix/smtp[170390]: E3AA217B05E: 
> >> to=<[email protected]>, orig_to=<[email protected]>, 
> >> relay=127.0.0.1[127.0.0.1]:10024, delay=0.71, delays=0.64/0/0/0.06, 
> >> dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 
> >> 2.0.0 Ok: queued as EF1F417A09F)
> > 
> > But amavis here receives message addressed to [email protected]. We can see
> > also dovecot entry above in the log. So it's either gpgit-pipe, dovecot or
> > amavis itself that rewrites address from [email protected] to
> > [email protected].

Jaroslaw is mistaken.

-- 
    Viktor.

Reply via email to