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.

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

Do not add wildcard rewriting to canonical_maps! Such will cause
backscatter.

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to