Subject: Re: sendmail/genericstable
To: Wojciech Puchar <wojtek@wojtek.3miasto.net>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 08/23/2001 14:41:26
On Thu, 23 Aug 2001, Wojciech Puchar wrote:
> > > > Fix pine. Go into setup and set the domain you want your mail to come from.
> > > i know this. but why it doesn't work this way?!
> > >
> > > is pine doing something that blocks genericstable?
> >
> > Yes. It's adding a "From:" header.
> so i don't understand genericstable in sendmail
> it (as i understand) should check it sender name (this at From:) is in
> database and if it is - change to specified.
>
> so why it is not working?
What "pine" is doing different from "mail", is that it's adding a
"From:" to the ordinary headers -- the first thing after the DATA
command, seperated from the actual message by a blank line -- rather
than letting the MTA (sendmail) set it from the envelope sender --
which is set by the smtp "MAIL FROM: ..." command.
The "From:" and "To:" headers are special, in that they're supposed to
be set by the "MAIL FROM: ..." and "RCPT TO: ..." commands before the
"DATA" command. You are allowed to have "From:" and "To:" headers in
the ordinary headers, however, in which case the MTA will still retain
the real, true envelope sender and recipient some other way, such as
by adding "Return-path:, "Envelope-Sender:", or "Rcpt-To:" headers.
This is how you can receive spam that's not (obviously) addressed to
you, by the way. Telnet to your own port 25 and experiment with it.
Frederick