Subject: rewriting From (was Re: newaliases (concerning 'sendmail'))
To: None <kkb@ddw.net>
From: Ken Nakata <kenn@synap.ne.jp>
List: port-mac68k
Date: 05/27/1998 09:30:39
On Tue, 26 May 1998 12:20:07 -0400,
Kevin Ogden <kkb@ddw.net> wrote:
> 
> I got fetchmail to work ok, but when I reply to e-mail, the e-mail address
> people see is not my mail server but the machine I am reading the mail on.
> How do I set up sendmail to use a reply-to address?  The mail server is a
> little NT box in another corner of the room.

I'm assuming you're running sendmail on your NetBSD box with the stock
/etc/sendmail.cf file, and your MUA (mail user agent) connects to
localhost:25 to handle the outgoing messages.  If not, the third
option below won't work.

There are several ways to accomplish what you want:

1) Set up your MUA software so that it'll add Reply-To:
you@host.you.receive.mail to the header. [Easiest but some MUAs don't
reply to where Reply-To: sepcifies]

2) Set up your MUA software so that it'll set From: to
you@host.you.receive.mail rather than you@host.you.read.mail, and
it'll connect to your NT server to handle the outgoing messages;
i.e. use as your SMTP server your NT server rather than localhost.
[Some MUAs may not have these parameters configurable]

3) Modify your /etc/sendmail.cf file so that sendmail will rewrite
From: address. [Works only if all the local users have an account on
the same mail server with the same login name, but that doesn't really
matter if the only user is you]

1 and 2 depend on the MUA software you're using.

As for 3, edit the following line in /etc/sendmail.cf from:
  
DM

to:
  
DMhost.you.receive.mail

Hope this helps,

Ken