mutt+sendmail: don't want local ip in headers
[For the impatient: I want mail to either be sent from my school's smtp
server, or to look like it's been sent from my school's smtp server. I
don't want people to see things like my home IP in my mail
headers. I'm using mutt, which doesn't have a built-in MTA.]
Normally I send mail through my school's smtp server. Now I'm trying
out mutt which by all accounts needs a separate MTA. That's OK, I
guess (**grumble**), I've got sendmail. So I'm now sending mail with
sendmail. Here's some logs (this is the sendmail that comes with
whatever yesterday's stable version was):
Oct 14 08:49:17 localhost sendmail[18389]: starting daemon (8.9.3):
queueing@00:10:00
Oct 14 09:02:21 localhost sendmail[18627]: JAA18627: from=krzys,
size=298, class=0, pri=30298, nrcpts=1,
msgid=<20001014090219.A18604@krzys.com>, relay=krzys@localhost
Oct 14 09:02:22 localhost sendmail[18629]: JAA18627:
to=majewski@cs.ubc.ca, ctladdr=krzys (1000/1000), delay=00:00:01,
xdelay=00:00:01, mailer=relay, relay=smtp.cs.ubc.ca. [142.103.6.52],
stat=Sent (JAA23848 Message accepted for delivery)
OK, so it works. Here's my problem. Looking at the mail headers (via
'less $MAIL' on the school server), I see the following:
>From krzys@krzys.com Sat Oct 14 09:02:22 2000
Received: from localhost.cs.ubc.ca (root@cr275960-a.crdva1.bc.wave.home.com [24.115.135.172]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id JAA23848 for <majewski@cs.ubc.ca>; Sat, 14 Oct 2000 09:02:20 -0700 (PDT)
Received: (from krzys@localhost)
by localhost.cs.ubc.ca (8.9.3/8.9.3/Debian 8.9.3-21) id JAA18627
for majewski@cs.ubc.ca; Sat, 14 Oct 2000 09:02:21 -0700
Date: Sat, 14 Oct 2000 09:02:21 -0700
From: Krzys Majewski <majewski@cs.ubc.ca>
To: majewski@cs.ubc.ca
Subject: from home
Message-ID: <20001014090219.A18604@krzys.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Status: O
X-Status:
X-Keywords:
X-UID: 2788
Compare this to the headers I get when sending from school:
>From majewski@cs.ubc.ca Sat Oct 14 08:59:45 2000
Received: from cascade.cs.ubc.ca (majewski@cascade.cs.ubc.ca [142.103.7.7]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id IAA23798 for <majewski@cs.ubc.ca>; Sat, 14 Oct 2000 08:59:44 -0700 (PDT)
Date: Sat, 14 Oct 2000 08:59:44 -0700 (PDT)
From: Chris Majewski <majewski@cs.ubc.ca>
To: majewski@cs.ubc.ca
Subject: from school
Message-ID: <Pine.SOL.4.21.0010140859290.18449-100000@cascade.cs.ubc.ca>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Status: O
X-Status:
X-Keywords:
X-UID: 2787
See? Much nicer! In particular, I take issue with the
following headers. Either I don't want the whole world to see them (eg
my IP address) or I'm not sure if they're necessary or even correct.
>From krzys@krzys.com Sat Oct 14 09:02:22 2000
Nobody has to know about krzys.com.
I want people to think my mail is coming from cs.ubc.ca.
Ideally I want the mail to actually come from cs.ubc.ca, as it was
before. I'm not trying to scam anybody here, I just want my mail
system to be as separate from my desktop box as possible (like it was
before I started using mutt)
Received: from localhost.cs.ubc.ca
(root@cr275960-a.crdva1.bc.wave.home.com [24.115.135.172]) by
pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id JAA23848 for
<majewski@cs.ubc.ca>; Sat, 14 Oct 2000 09:02:20 -0700 (PDT)
OK this is a problem. I don't want the world to see things like
root@cr275960-a.crdva1.bc.wave.home.com or my IP address.
And what's the deal with "from localhost.cs.ubc.ca", is that even correct?
Received: (from krzys@localhost)
Don't like this krzys@localhost business, what's up with that?
by localhost.cs.ubc.ca (8.9.3/8.9.3/Debian 8.9.3-21) id JAA18627
for majewski@cs.ubc.ca; Sat, 14 Oct 2000 09:02:21 -0700
Still not convinced about localhost.cs.ubc.ca.
There it is. Oh yeah, a putative solution should not break the ability
of cron jobs etc. to send mail to me, via .forward (or some other mechanism
if necessary) to my usual (school) mail account.
-chris
Reply to: