On Mon, Dec 15, 2008 at 09:39:54PM +0100, Magnus B?ck wrote: > On Monday, December 15, 2008 at 21:07 CET, > Corey Chandler <li...@sequestered.net> wrote: > > > Noel Jones wrote: > > > > > 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? > > foo_maps = hash:/path/to/hashfile, pcre:/path/to/pcrefile > > But if you do plan on using a single PCRE map, do use proper escaping of > regexp meta characters and anchor the end of the string. > > /^(.*)@host\.example\.com$/ $...@example.com > > But prefer masquerade_domains instead of this. Much easier to get right.
This happens on input, not output, so generic_maps is more appropriate in some cases. Also it cannot to domain replacement, just sub-domain hiding. So smtp_generic_maps is a good choice in many cases. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.