On 01/24/2013 02:43 PM, tmac wrote:
Excellent! Thanks. I just did this on my mail relay and it works.
I did manage to get it to work a few moments ago with canonical_maps also.
Now, what about a step further?
I have a a number of systems (under NIS) with the same user. When they
generate email,
is goes to [email protected] where myusr and mydomain are the same, but
the host portion is different. is there a way to collapse say:
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
into a single line? i.e. wildcard it some how
I have not found any working examples of a wildcard in the "host"
position above.
You can use a regex or PCRE map:
/etc/postfix/pcre-virtual:
/^test@[^.]+\.example$/ [email protected]
These maps types are not postmap'ed.
--
J.