Jaroslaw Rafa: > Dnia 18.05.2022 o godz. 08:47:33 Wietse Venema pisze: > > > > In master.cf, configure a dedicated SMTP delivery agent with a > > "-o smtp_generic_maps=maptype:mapname" override. > > > > Use transport_maps to select that delivery agent for deliveries to > > the domain that needs address rewriting. > > > > This rewrites {envelope, header} {sender, recipient} addresses. > > Can I use "-o sender_canonical_maps=..." instead of "-o > smtp_generic_maps=..." in this way, to change only the sender addresses?
The two are fundamentally different. sender_canonical_maps is before-queue, destination-independent. smtp_generic_maps is after-queue, destination-dependent. You can make sender_canonical_maps destination-dependent with a multi-instance setup: postfix-1 <===> postfix-2 <===> gmail etc. postfix-1 relayhost=[127.0.0.1]:12345 (or transport_maps) postfix-2 sender_canonical_maps=whatever Or send a patch to implement smtp_generic_classes. Wietse