Re: Rewrite of To: address

From: Noel Jones (no email)
Date: Wed May 09 2007 - 17:51:22 EDT

  • Next message: Ray: "Re: catchall with virtual domains, mysql driven"

    At 04:44 PM 5/9/2007, Wietse Venema wrote:
    >Noel Jones:
    > > >The recursive rewriting of course!
    > > >How does your rewrite rule look like?
    > > >
    > > > > >/^(.*)@my\.domain\.com$/ user+${1}@domaintobedeliveredlocally
    > > >
    > > >Notice how my left hand side domain and right hand side domain are not
    > > >the same ? :)
    > >
    > > Alternately, you can protect the expansion with an IF/ENDIF clause:
    > >
    > > IF !/^user+.*@my\.domain\.com$/
    > > /^(.*)@my\.domain\.com$/ user+${1}@my.domain.com
    > > ENDIF
    >
    >Caution: the + is special.
    >
    >IF !/^user\+.*@my\.domain\.com$/
    >/^(.*)@my\.domain\.com$/ user+${1}@my.domain.com
    >ENDIF
    >
    > Wietse

    Tx.. I was unintentionally matching "userrrrrrrrrr..." instead.
    Have to save that one for talk-like-a-pirate day.

    -- 
    Noel Jones 
    

  • Next message: Ray: "Re: catchall with virtual domains, mysql driven"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD