On Thu, Jun 23, 2022 at 08:24:36AM -0600, Austin Witmer wrote:
> Below is a sample of my mail.log file when I try to send an email from
> an external email account (user@outsidedomain) to a user on my server
> ([email protected]). The email ends up in the inbox of [email protected]
> instead of [email protected] as you can see towards the end of the log.
> Why is that?
>
> Jun 23 04:58:23 mail postfix/smtpd[170312]: F414717A09F:
> client=mail3.outsidedomain.com[216.24.56.73]
> Jun 23 04:58:23 mail postfix/cleanup[170347]: F414717A09F:
> message-id=<[email protected]>
> Jun 23 04:58:23 mail postfix/qmgr[170293]: F414717A09F:
> from=<[email protected]>, size=1384, nrcpt=1 (queue active)
> Jun 23 04:58:23 mail postfix/smtpd[170312]: disconnect from
> mail3.outsidedomain.com[216.24.56.73] ehlo=2 starttls=1 mail=1 rcpt=1 data=1
> quit=1 commands=7
> Jun 23 04:58:23 mail postfix/pickup[170292]: E3AA217B05E: uid=1001
> from=<[email protected]>
> 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)
> Jun 23 04:58:23 mail postfix/qmgr[170293]: F414717A09F: removed
> Jun 23 04:58:23 mail postfix/cleanup[170389]: E3AA217B05E:
> message-id=<[email protected]>
> Jun 23 04:58:23 mail postfix/qmgr[170293]: E3AA217B05E:
> from=<[email protected]>, size=2004, nrcpt=1 (queue active)
> Jun 23 04:58:23 mail postfix/smtpd[170392]: connect from localhost[127.0.0.1]
> Jun 23 04:58:23 mail postfix/smtpd[170392]: EF1F417A09F:
> client=localhost[127.0.0.1]
> Jun 23 04:58:23 mail postfix/cleanup[170387]: EF1F417A09F:
> message-id=<[email protected]>
> Jun 23 04:58:23 mail postfix/qmgr[170293]: EF1F417A09F:
> from=<[email protected]>, size=2320, nrcpt=1 (queue active)
> 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 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)
Your virtual(5) alias table rewrote the recipient address. You had
addres mappings disable in the first two passes through the queue,
but the final pass applied virtual aliases.
Presumably you have something equivalent to:
[email protected] [email protected]
in your virtual alias table. Don't do that. Users in virtual mailbox
domains don't need virtual(5) rewrites. Only virtual alias domains
need recipients to be rewritten into a "real" domain.
--
Viktror.