Noel Jones: > On 11/2/2017 7:48 AM, nico...@devels.es wrote: > > Hi, > > > > I'm running Postfix 2.9.6 and I'm trying to do a conditional sender > > rewrite based on recipient address. Machine sends e-mails as > > r...@internal-domain.com by default, but if the recipient is > > u...@external-domain.com I want to rewrite sender to be > > r...@different-domain.com. > > > > To do so, I've tried doing the following: > > > > 1) In master.cnf I added: > > toext unix - - n - - smtp -o > > canonical_maps=hash:/etc/postfix/generic_toext
Perhaps with smtp_generic_maps, but not with canonical maps because that happens before the queue. Wietse