|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Victor.Duchovni
morganstanley.comDate: Mon Jun 03 2002 - 15:35:52 CDT
On Mon, 3 Jun 2002, Bennett Todd wrote:
> I hacked up such a thing in Postfix once.
>
...
>
> rewrote the RCPT TO into XXXXXX
other.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 %s
handle.srcroute.invalid
#
# /etc/postfix/transport:
# .srcroute.invalid srcroutepipe
#
# The code in the srcroutepipe script extracts the original
# recipient address and the routing handle from:
#
# QPaddress
handle.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 majordomo
postfix.org with content (not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]