> On Sep 12, kmself@ix.netcom.com (kmself@ix.netcom.com) wrote: > > On Tue, Sep 12, 2000 at 06:59:05PM +0200, Christian Pernegger ([EMAIL > PROTECTED]) wrote: > > > How can I prevent exim from rewriting addresses that do not go > > > out over a smarthost? > > > > > > Specifically: > > > > > > If I send a mail from one LAN machine to another (using my debian/exim > > > host as relay) the mail is delivered locally but the "from" field is > > > rewritten to the external address of the user. > > > > > > So if I hit reply on the target machine the mail will go over the > > > smarthost, even though its target is practically local. > > > > > > (Am I making enough sense?) > > > > No more than me <g> > > > > I've asked, and possibly answered (though I haven't implemented) this > > question. Quoting my own recent post here: > > > > I also just found this Exim FAQ, which appears to address the > > question I'm concerned with: > > http://exim.ping.uio.no/FAQ.html#SEC201 > > > > Basically, it's this: > > > > o Rewrite all references to 'karsten' for mail being delivered > > outside the local network, changing them to > > 'kmself@ix.netcom.com' > > > > o Don't modify any references to 'karsten' for mail delivered on > > the local host or within the local network. > > > > ...I'm getting the impression this isn't the sort of rule Exim likes > > to have to deal with. Is Sendmail a better option? > > > > > > -- > > Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself > > Evangelist, Opensales, Inc. http://www.opensales.org > > What part of "Gestalt" don't you understand? Debian GNU/Linux rocks! > > http://gestalt-system.sourceforge.net/ K5: http://www.kuro5hin.org > > GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
(sorry I'm replying to the wrong message. I accidentally hit <shift-DEL> to many times :) I had a similar problem. (small lan behind aDSL line w/ dynIP) I tried to implement the faq thing but could not get the second daemon running (start-stop-daemon didn't like the second daemon). So I tried to use inetd, got administrative denial errors or something similar. So I used the idea from the virus checker (search the faq for "virus") I use a pipe transport to a simple perl script that uses /etc/email-addresses to rewrite the from line. In the transport I add an 'X-Local: rewritten" header and strip the X-Local headers in the remote_smpt router If you want I can send you/give more info on the setup. The only problem with this setup is that I get an extra Received header from user mail. Is there some way I could get rid of it? Jim