the meaning of the $k macro in sendmail.cf
In the book "Sendmail" by O'Reilly & Associates, Inc. on page 433
you will find:
Our UUCP node name (IDA and V8 only)
The UUCP suite of software gets the name of the local host from the uname(2)
system call, whereas sendmail gets the name of the local host from the
gethostbyname(3) system call. In order for sendmail to easily handle UUCP
addresses, the IDA and V8 versions also make use of the uname(2) function.
For IDA, first gethostbyname(3) is called and the result saved into $w. Then
uname(2) is called, and the nodename returned is compared to $w. If they are
the same, $k is given the same value as $w. If they differ, $k is given the
value of the returned nodename.
For V8, the host part of the fully-qualified name returned by gethostbyname(3)
is saved as the first string in the class $=w. Then uname(2) is called. If
the call succeeds, the macro k and the class k are both given the nodename
value returned. If the call fails, both are given the same hostname value that
was given to the class w.
For both versions of sendmail, $k is assigned its value when sendmail first
begins to run. It can be given a new value in either the configuration file or
from the command line.
cs.niu.edu!rickert Thu Jul 7 13:49:59 1994
halsp.hitachi.com!ljm Thu Jul 7 16:24:55 1994
mdlhk.attmail.com!andrew Fri Jul 8 08:19:58 1994
ts.go.dlr.de!Eckhard.Rueggeberg Fri Jul 8 08:04:58 1994
ptdcs2.intel.com!Nate-Itkin Thu Jul 7 18:31:40 1994
Artisoft.COM!ric Thu Jul 7 17:29:52 1994
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:05 CDT