Sendmail Mail Server Content Pack

The following content pack is available for use with a Graylog Illuminate license and Graylog Enterprise or Graylog Security. Contact sales to learn more about obtaining Illuminate.

Sendmail is a free and open-source mail transfer agent (MTA) used to route and deliver email on Unix-based systems. This technology pack will process Sendmail logs and includes parsers and dashboards to visualize key data such as sender/recipient activity, delivery status, ruleset rejections, authentication, and processing statistics.

Requirements

  • Graylog Server version 5.2.4 or later with valid Enterprise license

  • Sendmail logs delivered via syslog (RFC 5424) or Filebeat

Supported Versions

  • Sendmail version 8.15.2 and earlier compatible versions

Log Collection and Delivery

Sendmail logs can be delivered to Graylog via syslog or Filebeat. Only RFC 5424 compliant syslog messages are accepted for the syslog method.

Syslog Configuration

Configure syslog forwarding for Sendmail logs:

  1. Create a matching syslog input in Graylog (UDP or TCP)

  2. Configure the syslog server (e.g. rsyslog) to forward mail facility logs to the Graylog input

  3. Ensure logs are RFC 5424 compliant

Filebeat Configuration

Configure Filebeat to ship Sendmail log files:

  1. Create a matching Beats input in Graylog

  2. Create an API access token and Linux Filebeat collector

  3. Configure the collector to read Sendmail log files (e.g. /var/log/maillog)

  4. Set event_source_product to 'sendmail' in the Filebeat fields configuration

Stream Configuration

This technology pack includes 1 stream:

  • "Illuminate:Sendmail Mail Server Messages"

Hint: If this stream does not exist prior to the activation of this pack then it will be created and configured to route messages to this stream and the associated index set. There should not be any stream rules configured for this stream.

Index Set Configuration

This technology pack includes 1 index set definition:

  • "Sendmail Mail Server Logs"

Hint: If this index set is already defined, then nothing will be changed. If this index set does not exist, then it will be created with retention settings of a daily rotation and 90 days of retention. These settings can be adjusted as required after installation.

What is Provided

  • Parsing rules to extract Sendmail logs into Graylog schema compatible fields

  • GIM event type categorization and enforcement fields for supported Sendmail events

  • Illuminate spotlight dashboard with six tabs: Overview, Activity, Delivery Status, Rule Rejection, Authentication, and Processing Statistics

Log Format Example

Receipt log: t1NHIIgY028315: from=<masterchef@outlook.com>, size=496, class=0, nrcpts=5, msgid=<B3BE0AC12425C02A1FB8C9201EE5CB9E@jyvicegy>, proto=ESMTP, daemon=MTA, relay=host-47.55-234-182.cable.dynamic.website.net [182.234.55.47] Delivery log: e6BLc7u23822: to=foo@bar.com, ctladdr=foo (1002/1002), delay=00:00:08, xdelay=00:00:00, mailer=esmtp, pri=30025, relay=foo.bar.com., dsn=5.3.5, stat=Local configuration error Authentication log: AUTH=server, relay=[11.111.111.111], authid=aussie@foo.bar, mech=LOGIN, bits=0 STARTTLS log: STARTTLS=server, relay=111-1-111-11-AAAA.aaa.foobarbusiness.net [111.1.111.11], version=TLSv1/SSLv3, verify=NO, cipher=AES128-SHA, bits=128/128 Connection log: connect from 177-177-rev-placeholder.reverse.foo.net.bar [177.177.11.111] (may be forged) Ruleset rejection log: ruleset=check_rcpt, arg1=<jan@foo.bar.com>, relay=foo@odin.bar.com [192.168.1.1], reject=550 5.7.1 <jan@foo.bar.com>... Relaying denied Pre-greeting rejection log: rejecting commands from aa.example.com [22.22.22.22] due to pre-greeting traffic Daemon status log: starting daemon (8.14.7): queueing@01:00:00 Milter content filter rejection log: k876hJS0063495: Milter: data, reject=550 5.7.1 Blocked by SpamAssassin Lost connection log: k876hJS0063495: lost input channel from host.example.com [10.0.0.1] to MTA after rcpt System error log: NOQUEUE: SYSERR(root): daemon: cannot fork: Not enough space

GIM Categorization

GIM categorization is provided for the following log types:

Fields Extracted by This Pack

Parsed Fields

These are the fields extracted and mapped by the Sendmail content pack.

Illuminate:Sendmail Spotlight

This spotlight offers a dashboard with 6 tabs:

Sendmail Mail Server Overview

Activity

Delivery Status

Rule Rejection

Authentication

Processing Statistics