[TAG] How to rewrite From address with sendmail/smtp/evolution

David Stelter david at america.kicks-ass.org
Fri Apr 23 12:13:47 MSD 2004


So, here's my setup:

Home email server, RedHat 8, running sendmail. The sendmail server,
Hector, is sitting behind a linux MASQ box, Achilles, connected to my
DSL modem. I've got a dynamic IP from Qwest, so I'm using dyndns.org to
map a domain name to my IP. My primary desktop, Odysseus, is running RH
Enterprise, and my email client is Evolution. Most of everything is
working fine. I can send and recieve email without diffuculty. Evolution
is using POP3S to get mail from Hector, and sending via Sendmail, such
that email leaves Odysseus (desktop), and going, via Achilles (MASQ) to
the DSL modem and out to the net.

So, my problem is that the mail headers on my outgoing mail look like
the following:

Received: from odysseus.ilium ([209.181.55.93]) by mc3-f36.hotmail.com  
Received: from odysseus.ilium (localhost.localdomain [127.0.0.1])by
odysseus.ilium (8.12.10/8.12.10) with ESMTP id i3N869nl003761for  
Received: (from david at localhost)by odysseus.ilium  
X-Authentication-Warning: odysseus.ilium: david set sender to
david at america.kicks-ass.org using -f 
Return-Path: david at america.kicks-ass.org

I've stripped out the boring bits, but basically, some junk mail filters
get irritated about the "set sender to david at blah using -f".

I've looked through a number of howtos, FAQ's and etc, but what's the
cleanest, best way to get that original "Received: from" line to look
like the correct address, "america.kicks-ass.org"? I've played with this
more than a little, and not arrived at a solution.

Many thanks for solutions/pointers!

David

PS - please do not publish my real email address/hostnames/etc. I
included the real ones in hopes of simplifying diagnosis.







More information about the TAG mailing list