Hi,
What would be the equivalent of negative look-ahead assertions in
Postfix's map files?
I have:
main.cf:
sender_canonical_maps = regexp:/etc/postfix/canonical_maps
/etc/postfix/canonical_maps:
/^((?!foo[0-9]+).*)@domain1.com$/ ${1}@domain2.com
I want that any mail that comes from an address NOT starting with foo
and at least one number be rewritten to @domain2.com. However, I tried
sending an e-mail from foo...@domain1.com and it's still rewritten to as
from foo...@domain2.com, so I assume there's something wrong with this
regexp.
What would be the right way?
Thanks.
Nicolás