Overall Syntax

The sendmail.cf file is line-oriented, with one configuration command per line. Each configuration command consists of a single letter[233] that must begin a line. Each letter is followed by other information as required by the purpose of the particular command.

In addition to commands, the configuration file can also have lines that begin with a # to form a comment line, or with a tab or space character to form a continuation line. A list of all legal characters that can begin a line in the configuration file is shown in Table 16-1.

Table 16-1. sendmail.cf configuration commands

Command

§

Version

Description

#

Comments on page 579

All

A comment line, ignored.

space

Continuation Lines on page 580

All

Continue the previous line.

tab

Continuation Lines on page 580

All

Continue the previous line.

C

Class Configuration Commands on page 854

All

Define a class macro.

D

Configuration-File Definitions on page 787

All

Define a sendmail macro.

E

The E Configuration Command on page 156

V8.7 and above

Environment for agents.

F

Class Configuration Commands on page 854

All

Define a class macro from a file or a pipe.

H

Overview on page 1120

All

Define a header.

K

The K Configuration Command on page 882

V8.1 and above

Create a keyed map entry.

L

 

Obsolete

Extended load average.

M

The M Configuration Command on page 711

All

Define a mail delivery agent.

O

Configuration File Options on page 952

All

Define an option.

P

Precedence on ...

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.