Noel Jones wrote:
Corey Chandler wrote:
Victor Duchovni wrote:
On Fri, Dec 12, 2008 at 11:07:15AM -0800, Corey Chandler wrote:

I'm attempting to rewrite all source addresses from our server farm via a canonical map.

Use smtp_generic_maps for this. Not canonical_maps. Upgrade to a Postfix
that supports this feature if necessary.

    http://www.postfix.org/postconf.5.html#smtp_generic_maps


I've read through the documentation, and I'm still not quite clear on how to do a wildcard domain remap via generic to remap an entire domain:

/^...@host.example.com/   @example.com

fails in a postmap query, as do a few variations on the above pcre expression...

The ultimate goal is to remap anyu...@host.example.com to anyu...@example.com.


Don't use a regexp map for this. Generic(5) wildcard rewriting expects a hash: or other indexed table.

hash table wildcard example:
@host.example.com  @example.com



Thanks, Noel-- but if I already have other dynamic changes in generic, how do I apply both a static map and a PCRE map to the same lookup?

Right now I've worked around it by putting my dynamic maps in canonical...

Reply via email to