[Mimedefang] ReWrite Sender Address?

Jan Pieter Cornet johnpc at xs4all.nl
Fri Nov 12 17:35:24 EST 2004


On Fri, Nov 12, 2004 at 02:01:00PM -0800, Jason Granat wrote:
> Hello,
> 
> I have an interesting problem I am trying to solve. I am doing some
> experimenting on my internal network that has a couple mail servers. For
> the sake of a long winded explanation I force one of the servers (named
> mail.domain.int) to send all it's mail thru the second server (named
> mail.domain.com). On the second server I am running MIMEDefang and I would
> like to have a rule that rewrites the sender from mail coming from the
> internal server so the return address changes from user at domain.int to
> user at domain.com. Can I do this? Can someone tell me how?

Don't use mimedefang for this, or any other milters, because a milter
cannot really do this (short of resending the message).

Use these standard sendmail features in your sendmail.m4 file:

MASQUERADE_AS(`domain.com')
MASQUERADE_DOMAIN(`domain.int')
FEATURE(`masquerade_envelope')

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <pmmppfmfpppppfmmmf at fpffmm4mmmpmfpmf.ppppmf>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet



More information about the MIMEDefang mailing list