Prior to V8
if the list of recipients contained an address that began with
any of the prescanned switches,
view that recipient as a switch during its prescan phase. For
example, mail to
joe, bill, -Cool
to try to use a file named
as its configuration file.
Command-line switches must precede recipient addresses.
Switches that are mixed in with recipient names are treated as recipient
Most versions of
(including IDA and some
versions of BSD but excluding SunOS and V8)
(3) a warning if the frozen configuration file doesn't
exist. This can be annoying at sites that intentionally choose
not to use a frozen configuration file.
Prior to V8
, unknown command-line switches
were silently ignored. Therefore sending
mail from a shell script could fail for reasons that were difficult
For example, specifying the preliminary hop count
, instead of correctly with
caused your presetting of the hop count to be silently ignored.
Some old BSD and SunOS versions of sendmail set the default sender's full
name from the environmental variable NAME even when running
as a daemon or when processing the queue. This can lead to
the superuser's full name occasionally showing up wrongly as a sender's
full name. IDA and V8
clear the full name in
modes but use different methods.
To prevent this problem under other versions of
(1) program can be used to clean up the environment
env - /usr/lib/sendmail -bd -q1h
(3) to parse its command-line arguments
so that a switch and its argument may have whitespace between them
But for bizarre historical reasons the
switch differs. There
may never be space between the
and its arguments:
If there is space between them, the argument (here,
) is taken
to be a recipient name.