Well. Lets say that this looks complex.
This works: smtp_generic_maps = hash:/etc/postfix/generic to rewrite smtp from: and file contains: /.*/ Yes, all from to same author regardless of original input. no need to touch to or cc headers. Eero pe 9. elok. 2024 klo 9.53 Viktor Dukhovni via Postfix-users ( postfix-users@postfix.org) kirjoitti: > On Fri, Aug 09, 2024 at 09:22:59AM +0300, Eero Volotinen via Postfix-users > wrote: > > > How do I rewrite relayed (smtp in) and local from field? > > https://www.postfix.org/ADDRESS_REWRIGING_README.html > > > Tried various instructions, but cannot get both working at same time. > > That's not a particularly detailed description of what you've tried. > > https://www.postfix.org/DEBUG_README.html#mail > > > So I mainly want that all mails relayed to office365 contains > > > > from: f...@foo.foo and smtp from envelope f...@foo.foo > > The *same* author and sender regardless of original input? What about > "To:" and "Cc:" headers? > > -- > Viktor. > _______________________________________________ > Postfix-users mailing list -- postfix-users@postfix.org > To unsubscribe send an email to postfix-users-le...@postfix.org >
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org