[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): [EMAIL PROTECTED]:10:00 Oct 14 09:02:21 localhost sendmail[18627]: JAA18627: from=krzys, size=298, class=0, pri=30298, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Oct 14 09:02:22 localhost sendmail[18629]: JAA18627: [EMAIL PROTECTED], 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 [EMAIL PROTECTED] Sat Oct 14 09:02:22 2000 Received: from localhost.cs.ubc.ca ([EMAIL PROTECTED] [24.115.135.172]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id JAA23848 for <[EMAIL PROTECTED]>; Sat, 14 Oct 2000 09:02:20 -0700 (PDT) Received: (from [EMAIL PROTECTED]) by localhost.cs.ubc.ca (8.9.3/8.9.3/Debian 8.9.3-21) id JAA18627 for [EMAIL PROTECTED]; Sat, 14 Oct 2000 09:02:21 -0700 Date: Sat, 14 Oct 2000 09:02:21 -0700 From: Krzys Majewski <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: from home Message-ID: <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] Sat Oct 14 08:59:45 2000 Received: from cascade.cs.ubc.ca ([EMAIL PROTECTED] [142.103.7.7]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id IAA23798 for <[EMAIL PROTECTED]>; Sat, 14 Oct 2000 08:59:44 -0700 (PDT) Date: Sat, 14 Oct 2000 08:59:44 -0700 (PDT) From: Chris Majewski <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: from school Message-ID: <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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 ([EMAIL PROTECTED] [24.115.135.172]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id JAA23848 for <[EMAIL PROTECTED]>; Sat, 14 Oct 2000 09:02:20 -0700 (PDT) OK this is a problem. I don't want the world to see things like [EMAIL PROTECTED] or my IP address. And what's the deal with "from localhost.cs.ubc.ca", is that even correct? Received: (from [EMAIL PROTECTED]) Don't like this [EMAIL PROTECTED] 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 [EMAIL PROTECTED]; 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