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:

/^[email protected]/   @example.com

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

The ultimate goal is to remap [email protected] to [email protected].


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



--
Noel Jones

Reply via email to