[comp.mail.headers] "$s" variable in sendmail.cf

paul@devon.UUCP (02/01/87)

The smail.cf.sh script, which is supplied with smail-1.0, creates
a default sendmail.cf which contains the following fragment in
the "Format of Headers" section:

    HReceived: $?sfrom $s
	    $.by $j ($v/$V)
	    id $i; $b

Now, I know what the $j, $v, $V, $i, and $b variables (is that what
they're called) are, and how they are set.  Common sense tells me that
the phrase "$?sfrom $s" translates to: "If 's' is set (has value) then
type 'from the_value_of_s'".  I am assuming that $s should contain
the hostname.domain of the system I received the message from; I have
seen headers on mail sent to me which looked something like:

    Received: from bletch.UUCP by foobar.UUCP (version_junk_here)
	    id (id_junk_here@foobar.UUCP)

I find no evidence that the sendmail.cf is setting $s.  My question, then,
is where is $s supposed to be set, and how do I coerce sendmail.cf into
using it?

-- 
Paul Sutcliffe, Jr.	    paul@devon.UUCP	(or, if you prefer:)
Devon Computer Services	    {seismo,ihnp4,allegra,rutgers}!cbmvax!devon!paul
Allentown, PA
		"I love work.  I could sit and watch people do it all day!"

diamant@hpfclp.HP.COM (John Diamant) (02/04/87)

The macro $s, like many other macros in sendmail, is set by sendmail itself,
not by the configuration file.  My manual says that the macro is the sender's
host name.

John Diamant	SCO	diamant@hpfclp or hpfclp!diamant