[email protected]: > [html>[head>[/head>[body>[div style="font-family: Verdana;font-size: > 12.0px;">[div>?nbsp;[/div> > > [div> > [div>?gt; 1. x-original-to header[br/> > ?nbsp;I still have no clue why the domain part is missing.?nbsp; > But this is still a test and at the end we will use pipe to > dovecot.?nbsp; Maybe this changes things.[/div>
X-Original-To has always been the address before any rewriting, i.e. the bare username in the case of /bin/mail or /bin/mailx. Note that this X-Original-To information is NOT propagated when Postfix forwards email to an other mail system. If that other mail system is Postfix, then it will set X-Original-To to the address in the SMTP "RCPT TO" command, which is always in user@domain form. > [div>?nbsp;[/div> > > [div>?gt; 2. catch-all dovecot/postfix[br/> > [a > href="https://deref-gmx.net/mail/client/jhE1uoDrlOo/dereferrer/?redirectUrl=https%3A%2F%2Fwiki.dovecot.org%2FLDA%2FPostfix" > target="_blank">https://wiki.dovecot.org/LDA/Postfix[/a>?nbsp; (Backscatter > seems to give hints).[/div> This is not the mailing list for questions about Dovecot configuration. > [div>?nbsp;[/div> > > [div>?gt; ?nbsp;3. locally delivered mail relayed via submission[br/> > There, I have no clue.?nbsp; All mails that come in locally via > sendmail/mail or any other program should be forwarded via submission, > all other mail coming in via port 25 on the public ip should be > relayed the normal way.?nbsp; When local mail comes in via port > 25, that should be on localhost:25 and this I would handle using > another smtpd bound to localhost.?nbsp; How do I manage delivered > mails via sendmail/mail?[/div> Maybe you can copy what you were doing before the migration. By design, Postfix makes email delivery independent from how a message was received. You have to jump hoops to change that, for example by using sender_dependent_default_transport or sender_dependent_relayhost. Wietse
