UnixFromLine
Define the From format All versions
The UnixFromLine
option replaces the pre-V8.7 $l
macro. It has two
functions:
It defines the look of the five-character "
From
" header line needed by UUCP software.It defines the format of the line that is used to separate one message from another in a file of many mail messages.
The forms of the UnixFromLine
option and $l
macro are as
follows:
Dlformat ← configuration file (V8.6 and earlier) O UnixFromLine=format ← configuration file (V8.7 and later) -OUnixFromLine=format ← command line (V8.7 and later) define(`confFROM_LINE',`format') ← mc configuration (V8.7 and later)
The format
is of type
string. Under V8.6 and
earlier, there was no default for
format
, so the $l
macro always had to
be defined. Beginning with V8.7,
sendmail first checks to see
whether the UnixFromLine
option was defined and
uses that value if it was. Otherwise, it checks to
see whether the level of the configuration file is 6
or less. If it is and if the $l
macro was defined, it
uses that value. Otherwise, it uses the
default:
From $g $d
Here, $g
($g on page 824) holds the
sender’s address relative to the recipient, and
$d
($d on page 817) holds as its
value the current date in Unix
ctime(3) format.
The UnixFromLine
option is not safe. If specified from the command
line, it can cause sendmail to
relinquish its special privileges.
UnixFromLine in UUCP software
UUCP software requires all messages to begin with a header line that looks like this:
From sender date remote from ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.