Set (increase) the logging level All versions

The sendmail program is able to log a wide variety of information about what it is doing. There is no default file for recording information. Instead, sendmail sends all such information via the Unix syslog(3) mechanism. The disposition of messages by syslog is determined by information in the file /etc/syslog.conf (see Tuning syslog.conf on page 515). One common scheme places noncritical messages in /var/log/syslog but routes important messages to /dev/console or /var/adm/messages.

The meaningful values for the logging level, and their syslog priorities, are outlined here.[392] Higher logging levels include the lower logging levels. For example, logging level 2 also causes level 1 messages to be logged.


Minimal logging. See What is logged at LogLevel=0 on page 1041 for examples of what is logged at this setting.


Serious system failures and security problems logged at LOG_CRIT or LOG_ALERT.


Communication failures (e.g., lost connections or protocol failures) logged at LOG_CRIT.


Malformed addresses logged at LOG_NOTICE. Transient forward/include errors logged at LOG_ERROR. Connect timeouts logged at LOG_NOTICE.


Malformed qf filenames and minor errors logged at LOG_NOTICE. Out-of-date alias databases logged at LOG_INFO. Connection rejections (via libwrap.a or one of the check_ rule sets) logged at LOG_NOTICE.


A record of each message received logged at LOG_INFO. Envelope cloning logged at LOG_INFO.


SMTP VRFY attempts and messages ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.