Overall Syntax

The sendmail.cf file is line-oriented, with one configuration command per line. Each configuration command consists of a single letter[1] 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 17-1.

Table 17-1. sendmail.cf configuration commands

Command

§

Version

Description

#

Section 17.2

All

A comment line, ignored

space

Section 17.4

All

Continue the previous line

tab

Section 17.4

All

Continue the previous line

C

Section 22.1

All

Define a class macro

D

Section 21.3

All

Define a sendmail macro

E

Section 10.2.1

V8.7 and above

Environment for agents

F

Section 22.1

All

Define a class macro from a file or a pipe

H

Section 25.1

All

Define a header

K

Section 23.2

V8.1 and above

Create a keyed map entry

L

Obsolete

Extended load average

M

Section 20.1

All

Define a mail delivery agent

O

Section 24.3

All

Define an option

P

Section 25.10

All

Define delivery priorities

Q

Section 11.4.2

V8.12 and above

Declare queue groups

R

Section 18.2

All

Define a transformation rule

S

Section 19.1

All

Declare a rule-set start

T

Section 10.8.1.1

All

Declare trusted users (ignored V8.1-V8.6) ...

Get Sendmail, 3rd 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.