Ellie via Postfix-users: > Dear postfix users community, > > Sorry for asking another beginner question. I've seen solutions online > for this, but only one with caveats. > > One of my setups involves a forwarding SMTP that handles external > domains, that then forwards them to some other internal mailbox on a > different machine. To do that, I use postfix with virtual_alias_maps to > forward it. I've seen that use case also used to implement catch-alls. > > The problem: postfix sets Delivered-To for the final target address it > forwards to. However, it doesn't seem to keep the original envelope-to.
Postfix will prepend X-Original-To if it does the aliasing AND delivery. It won't prepend that when forwarding mail. You can force this witH; /etc/postfix/master.cf relay .. .. .. .. .. .. smtp flags=O /etc/postfix/main.cf: relay_destination_recipient_limit = 1 transport_maps = hash:/etc/postfix/transport /etc/postfix/transport example.com relay:[internal-mailhub.example] http://www.postfix.org/smtp.8.html http://www.postfix.org/postconf.5.html#transport__destination_recipient_limit You should not prepend the header with multi-recipient deliveries, because that is a privacy problem. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org