The sendmail program can keep the system administrator up to date about many aspects of mail delivery and forwarding. It does this by logging its activities using the syslog(3) facility.
There is one new option that effects logging, but it is covered in Chapter 24:
The RejectLogInterval
option (Section 24.1.11
[V8.13]) tells
sendmail
how often (at what intervals) it should
log a message
saying that connections are still being
refused.
Two equates that were not covered in the third edition and are covered here, along with a new one that is available with V8.13:
The milter=
equate, new since V8.12, shows the
name of the Milter (Section 14.1.1
[V8.13]).
The action=
equate, new since V8.12, shows the
Milter’s phase (Section 14.1.2
[V8.13]).
The quarantine=
equate, new since V8.13, shows why
a message was quarantined (Section 14.1.3
[V8.13]).
The milter=
equate (new since V8.12) shows
the
name of the Milter that was used to prevent the message from being
sent. That name was set by the X
configuration
command when your configuration file was created. For example, the
following sets the name of the Milter to Milter1
:
INPUT_MAIL_FILTER(`Milter1´, `S=local:/var/run/f1.sock, F=R´)
If a message is prevented from being delivered by this Milter, the following equate will be logged:
milter=Milter1
This equate is most useful when you run multiple Milters.
The action=
equate (new since V8.12) specifies
the
Milter phase that was in effect when the message was prevented from
being delivered. The phases correspond to the
xxfi
routines in the Milter documentation. For
example, if the xxfi_header
( ) routine was used
to reject the message based on a header, the following
action=
will be logged:
action=header
The new quarantine=
equate is
used
to log the reason that an envelope was quarantined (Section 11.1.2
[V8.13]). For
example, the following log line shows that this particular envelope
was quarantined because it was destined for a
competitor’s site:
Oct 9 11:26:00 your.domain sendmail[4788]: f99IPuIH004788: ruleset=check_mail, [email protected], quarantine=Held, mail from competitor.gov
The use of this new equate is fully demonstrated in Section 11.1.3 [V8.13]. Note that the reason for quarantining, that is printed following this equate, may contain spaces, equal signs, and commas, possibly making this output more difficult to parse.
3.149.255.162