Wietse Venema: > Michael Way: > > it would be?: > > if !/[[:<:]]user1\.home@work\.com$/ > > /./ user1\.home@work\.com Don't use \ in the replacement text! > > endif > > Looks like you want to replace all senders in outbound email by your own > email address. In that case it is sufficient to do this: > > /etc/postfix/main.cf: > > sender_canonical_maps = pcre:/etc/postfix/sender_canonical > sender_canonical_classes = envelope_sender > > /etc/postfix/sender_canonical: > > /./ your-email-address-here-without-backslashes-garbage
The problem with this is that it also replaces the sender on inbound email, that is, if affects mail that you receive, and mail that you send out. The alternative, smtp_generic_maps, chanes outbound mail only, but it has a worse problem: it updates From, To: and so on. There currently is no option to apply smtp_generic_maps to the sender only. Wietse