Sendmail Installation and Operation Guide
SMM:08-53
CHmonet
CHucbmonet
are equivalent. The ``F'' forms read the elements of the class c from the named file, program, or
map specification. Each element should be listed on a separate line. To specify an optional file, use
``-o'' between the class name and the file name, e.g.,
Fc -o /path/to/file
If the file can't be used, sendmail will not complain but silently ignore it. The map form should be
an optional map key, an at sign, and a map class followed by the specification for that map. Exam-
ples include:
F{VirtHosts}@ldap:-k (&(objectClass=virtHosts)(host=*)) -v host
F{MyClass}foo@hash:/etc/mail/classes
will fill the class $={VirtHosts} from an LDAP map lookup and $={MyClass} from a hash data-
base map lookup of the foo. There is also a built-in schema that can be accessed by only specifying:
F{ClassName}@LDAP
This will tell sendmail to use the default schema:
-k (&(objectClass=sendmailMTAClass)
(sendmailMTAClassName=ClassName)
(|(sendmailMTACluster=${sendmailMTACluster})
(sendmailMTAHost=$j)))
-v sendmailMTAClassValue
Note that the lookup is only done when sendmail is initially started.
Elements of classes can be accessed in rules using $= or $~. The $~ (match entries not in
class) only matches a single word; multi-word entries in the class are ignored in this context.
Some classes have internal meaning to sendmail:
$=e
contains the Content-Transfer-Encodings that can be 8
7 bit encoded. It is predefined to
contain "7bit", "8bit", and "binary".
$=k
set to be the same as $k, that is, the UUCP node name.
$=m
set to the set of domains by which this host is known, initially just $m.
$=n
can be set to the set of MIME body types that can never be eight to seven bit encoded. It
defaults to "multipart/signed". Message types "message/*" and "multipart/*" are never
encoded directly. Multipart messages are always handled recursively. The handling of
message/* messages are controlled by class $=s.
$=q
A set of Content-Types that will never be encoded as base64 (if they hav e to be encoded,
they will be encoded as quoted-printable). It can have primary types (e.g., "text") or full
types (such as "text/plain"). The class is initialized to have "text/plain" only.
$=s
contains the set of subtypes of message that can be treated recursively. By default it con-
tains only "rfc822". Other "message/*" types cannot be 8
7 bit encoded. If a message
containing eight bit data is sent to a seven bit host, and that message cannot be encoded
into seven bits, it will be stripped to 7 bits.
$=t
set to the set of trusted users by the T configuration line. If you want to read trusted users
from a file, use Ft/file/name.
$=w
set to be the set of all names this host is known by. This can be used to match local host-
names.
$={persistentMacros}
set to the macros would should be saved across queue runs. Care should be taken when
adding macro names to this class.