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 Wietse