OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Andreas S. Oesterhelt (oesoesterhelt.dyndns.org)
Date: Fri Mar 02 2001 - 10:45:36 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hello Wietse,

    ..thanks for the prompt answer. My problem, however, remains:

    > > What I want to happen is that in the first step, all addresses
    > > of the form userhost.domain1 are converted to userdomain1 and
    > > in a second step, userdomain1 is converted to userdomain2.
    >
    > Canonical maps can do that for you already.
    >
    > host.domain1 domain1
    > domain1 domain2

    But wouldn't that require clones of the first line for every
    host in domain1?

    > Use a regexp based canonical map if necessary.

    Though I thought I had RTFM I didn't find any documentation
    on that feature. Sounds like excactly what I'm looking for.

    > For more specific
    > hints, you need to give more specific examples.

    I have lots of hosts in domain1 and need all the From-haders
    rewritten from <anyuser><anyhost>.domain1 to <anyuser>domain2.

    In Perl-style my sender_canonical would read
    s/(\w+)(\w+)\.domain1/$1.domain2/

    TIA,
    --Andreas