On Fri, Nov 19, 2010 at 06:09:02PM +0000, Andrew Hall wrote:

> On 19 November 2010 17:40, Victor Duchovni <
> victor.ducho...@morganstanley.com> wrote:
> 
> >
> > Probably using "hash:/etc/postfix/generic" in main.cf, when "regexp:"
> > is what you tested.
> >
> 
> Thanks for the prompt reply Victor. You raise perfectly valid points and I
> do apologise for my naivety

If the UTF-8 is not mangled: naïveté 

> /^...@.*localdomain$/    %u...@domain.com <r...@domain.com>
> 
> would you know if this is possible ?

    http://www.postfix.org/regexp_table.5.html
    http://www.postfix.org/pcre_table.5.html

You really should just set $myorigin correctly. Or else use
an indexed wildcard mapping in smtp_generic_maps.

        @host.local     @example.com

which avoids the pain and suffering of regular expressions.

-- 
        Viktor.

Reply via email to