The "e6FFAFv24566" string as part of the XStatus field is the queue id of this message on the ToRelay. This information helps in tracking a message over multiple machines.
, size=551, class=0, nrcpts=1, msgid=<200007151552.e6FFqmD16573(a)odin.foo.com>, proto=ESMTP, daemon=MTA, relay=jan(a)odin.foo.com [192.168.1.1]
Jul 15 17:53:51 thor.foo.com sendmail[22495]: e6FFrpW22493: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30551, relay=frigga.bar.com. [192.168.1.3], dsn=5.1.2, stat=Host unknown (Name server: magnum.bar.com.: host not found)
Time 963676431
LogRelay thor.foo.com
QueueId e6FFrpW22493
MessageId 200007151552.e6FFqmD16573(a)odin.foo.com
FromUser jan
FromDomain foo.com
FromRelay jan(a)odin.foo.com_[192.168.1.1]
Size 551
Delay 00:00:00
XDelay 00:00:00
ToUser joost
ToDomain magnum.bar.com
ToRelay frigga.bar.com_[192.168.1.3]
Status Host_unknown
XStatus Name_server:_magnum.bar.com.:_host_not_found
Note that the reason why the message could not be sent is put into the XStatus field. This information can be used to analyze what causes a message not to be sent.
8.1.5Miscellaneous sendmail loggings
Until now, only logging of message transfers was described. However, sendmail will log much more events than just those, it e.g. also logs connection rejections, alias database rebuilds and generation of DSN's (among which error messages).
A lot of things can go wrong in message transfers. Possible sources are local host problems, problems with incoming and outgoing connections and of course, problems with the message itself, e.g. its addressing.
A full list of what is logged up to log level 9, and the extra's above that value is given in [3, page 27]. Over here, these items are sorted per source category below. Not everything logged is an error event though.
Local host related logging
Events on the local host (mostly problems) are also logged by sendmail. Host and sendmail configuration errors cause lasting (non-transient) problems in message transfer, while resource shortages are usually temporary and so cause transient problems. Non-error events, such as alias database rebuilds, are also configuration-related and are logged too.
8.1.6For log level 9, the logged events per category are:
non-transient problems:
IP stack setup problems: has no hostname (daemon starts waiting)
resolver config problem (DNS, NIS, or whatever)
sendmail config errors (e.g. mismatch with DNS: local configuration error, out of date alias database
improper file and directory permissions, unsafe symlinks and hard links
out of date alias databases
transient problems:
lack of resources (disk space, memory, CPU)
non-problem events:
alias database rebuilds
Examples:
Jul 11 23:08:39 frigga sendmail[23693]: My unqualified host name (frigga) unknown; sleeping for retry
Jul 11 23:15:58 frigga.foo.com sendmail[23740]: e6BLFwY23738: to=jan(a)foo.com, ctladdr=jan (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30026, relay=odin.foo.com, dsn=4.0.0, stat=Deferred: Name server: odin.foo.com: host name lookup failure
Jul 11 23:38:15 frigga.foo.com sendmail[23824]: e6BLc7u23822: to=root(a)blurp.foo.com, ctladdr=jan (1002/1002), delay=00:00:08, xdelay=00:00:00, mailer=esmtp, pri=30025, relay=blurp.foo.com., dsn=5.3.5, stat=Local configuration error
Jul 11 23:52:06 frigga.foo.com sendmail[23948]: NOQUEUE: SYSERR(root): hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission denied
Jul 11 23:52:06 frigga.foo.com sendmail[23948]: NOQUEUE: SYSERR(root): Cannot create database for alias file /etc/mail/aliases
Jul 11 23:49:24 frigga.foo.com sendmail[23905]: alias database /etc/mail/aliases.db out of date
Jul 7 19:23:29 frigga.foo.com sendmail[5803]: NOQUEUE: SYSERR(root): daemon: cannot fork: Not enough space
Jul 15 20:13:50 frigga.foo.com sendmail[16742]: alias database /etc/mail/aliases rebuilt by jan
Jul 15 20:13:50 frigga.foo.com sendmail[16742]: /etc/mail/aliases: 22 aliases, longest 24 bytes, 379 bytes total
8.1.7Connection related logging
Connections relate to both incoming and outgoing network connections from and to other hosts. Both on network level and on protocol level, error and non-error events are logged. Logging categories for log level 9 are:
(potential) security problems (e.g. spamming)
lost communications (network problems)
protocol failures
connection timeouts
connection rejections
VRFY and EXPN commands
Examples:
Jul 15 21:17:37 thor.foo.com sendmail[22751]: e6FJHbG22751: ruleset=check_mail, arg1=notorious(a)spammerhome.com, relay=jan(a)odin.foo.com [192.168.1.1], reject=553 5.3.0 notorious(a)spammerhome.com... Sorry, access for decent people only
Jul 15 21:17:37 thor.foo.com sendmail[22751]: e6FJHbG22751: from=notorious(a)spammerhome.com, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=jan(a)odin.foo.com [192.168.1.1]
Jul 15 22:43:25 odin.foo.com sendmail[17394]: WAA17394: lost input channel from nld116-54.bar.com [172.16.123.54]
Jul 15 22:43:25 odin.foo.com sendmail[17394]: WAA17394: from=jan(a)nld116-54.foo.com, size=0, class=0, pri=0, nrcpts=1, proto=ESMTP, relay=nld116-54.foo.com [172.16.123.54]
Jul 15 21:21:01 thor.foo.com sendmail[22752]: NOQUEUE: jan(a)odin.foo.com [192.168.1.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Jul 15 21:30:54 odin.foo.com sendmail[16971]: e6FJUq016969: to=jan(a)thor.foo.com, ctladdr=jan (1003/1003), delay=00:00:02, xdelay=00:00:00, mailer=esmtp, pri=30000, relay=thor.foo.com. [192.168.1.2], dsn=4.0.0, stat=Deferred: Connection refused by thor.foo.com.
Jul 15 21:40:30 thor.foo.com sendmail[22850]: e6FJeUB22850: ruleset=check_rcpt, arg1=, relay=jan(a)odin.foo.com [192.168.1.1], reject=550 5.7.1 ... Relaying denied
Jul 15 21:40:30 thor.foo.com sendmail[22850]: e6FJeUB22850: from=, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=jan(a)odin.foo.com [192.168.1.1]
Jul 15 21:42:11 thor.foo.com sendmail[22852]: e6FJgBB22852: jan(a)odin.foo.com [192.168.1.1]: vrfy jan
Jul 15 21:42:35 thor.foo.com sendmail[22854]: e6FJgZB22854: jan(a)odin.foo.com [192.168.1.1]: expn postmaster
8.1.8Message related logging
Message logging was already discussed at the top. At log level 9, items logged apart from successful message transfers are:
malformed addresses
message collection statistics
creation of error messages
delivery failures (permanent errors)
messages being deferred (transient errors)
Examples:
- coming -
- coming -
Jul 15 17:53:51 thor.foo.com sendmail[22495]: e6FFrpW22493: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30551, relay=frigga.bar.com. [192.168.1.3], dsn=5.1.2, stat=Host unknown (Name server: magnum.bar.com.: host not found)
Jul 15 17:53:51 thor.foo.com sendmail[22495]: e6FFrpW22493: e6FFrpW22495: DSN: Host unknown (Name server: magnum.bar.com.: host not found)
Jul 15 21:40:30 thor.foo.com sendmail[22850]: e6FJeUB22850: ruleset=check_rcpt, arg1=, relay=jan(a)odin.foo.com [192.168.1.1], reject=550 5.7.1 ... Relaying denied
Jul 15 21:30:54 odin.foo.com sendmail[16971]: e6FJUq016969: to=jan(a)thor.foo.com, ctladdr=jan (1003/1003), delay=00:00:02, xdelay=00:00:00, mailer=esmtp, pri=30000, relay=thor.foo.com. [192.168.1.2], dsn=4.0.0, stat=Deferred: Connection refused by thor.foo.com.
8.1.9Log control
Check if the following statement is in your sendmail.cf:
[/etc] edwin(a)p6> grep -i loglevel sendmail.cf O LogLevel=9In syslog.conf, check if the file is logged to:
[/etc] edwin(a)p6> grep -i mail syslog.conf
mail.info /var/log/mail.logCreate the file /var/log/mail.log (if it didn't exist yet), restart the syslog daemon and then the sendmail daemon.
Other Sendmail log-processors
Maillog Report Generation Utility by Jason Armstrong
Anteater of the Profzone Group