OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Victor.Duchovnimorganstanley.com
Date: Mon Jun 03 2002 - 15:35:52 CDT

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

    On Mon, 3 Jun 2002, Bennett Todd wrote:

    > I hacked up such a thing in Postfix once.
    >
    ...
    >
    > rewrote the RCPT TO into XXXXXXother.domain, where XXXXXX was the
    > base64 encoding of the original RCPT TO, and other.domain was a

    Hi Bennett! Just one minor clarification, we ran into case sensitivity
    issues with base64, so the final address encoding ended up being
    quoted-printable:

            # srcroute{} is a sender indexed hash with values that are
            # sprintf format strings. e.g %shandle.srcroute.invalid
            #
            # /etc/postfix/transport:
            # .srcroute.invalid srcroutepipe
            #
            # The code in the srcroutepipe script extracts the original
            # recipient address and the routing handle from:
            #
            # QPaddresshandle.srcroute.invalid
            #
            # The rest of logic depends heavily on site specific requirements
            #

            if ( $what =~ /^rcpt/i and defined($srcroute) and
                    defined( my $fmt = $srcroute{lc($server->{from})} ) )
            {
                (my $to = $server->{to}) =~ s/\W/sprintf("=%02x",ord($&))/eg;
                $client->say("rcpt to: ", sprintf($fmt, $to));
            }

    The transport table is in the backend Postfix instance (the one receiving
    mail from the content filter).

    -- 
    	Viktor.
    

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users