From:
The sender RFC2822
The From:
header
lists the address of one or more senders, where each
sender address can be in one of four legal
forms:
address <address> Full Name <address> address (comment)
When the From:
header lists multiple senders (in the sense that
there can be multiple authors) each must be
separated from the others by commas:
From: address, address
Here, address
specifies
sender mailboxes, and each can be in any of the four
basic forms shown earlier. When multiple senders
(authors) are in the From:
header, the presence of the
Sender:
header
(Sender: on page 1166) is
mandatory and must show the address of the agent
responsible for actual transmission. When a single
author is in the From:
header, and when the author and
transmitter differ, the Sender:
header must show the address of
the actual transmitter. When author and transmitter
are the same, the Sender:
header can be omitted.
A From:
header must
be declared in the configuration file, and its field
is composed of the $x
($x on page
851) and $g
($g on page 824) macros.
For example:
H?F?From: $?x$x <$g>$|$g$.
$g
contains the
official return address of the sender. $x
contains the full
name for the sender. $x
can be undefined for some addresses,
so it should be wrapped in the $?
and $
. conditional operators
(Macro Conditionals: $?, $|, and $. on page 794).
The From:
header
must be prefixed by the ?F?
flag because all the traditional
delivery agents use the F=F
flag (F=F on page 771) to force inclusion of that header. Use ...
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.