Splunk Technology Add-on for SmarterMail (Windows) logs with CIM Email alignment.
smtpLog.logdelivery.logimapLog.logpopLog.logadministrative.loggeneralErrors.logspamChecks.logactivation.log
- Copy the
TA-smartermailfolder to$SPLUNK_HOME/etc/apps/. - Restart Splunk on the Search Head.
- (Optional) Deploy to Universal Forwarders via Deployment Server if you need the
props.confline-breaking rules applied at index time.
This TA assumes logs are ingested with:
sourcetype = smartermail:logindex = mail(adjust as needed)
Ensure your inputs.conf on the UF uses the correct sourcetype.
This TA is designed to work with Splunk Enterprise Security (ES) by mapping key fields to the Email Data Model of the Splunk Common Information Model (CIM).
| Field | Description | CIM Alignment | Notes |
|---|---|---|---|
action |
Result of the delivery attempt | ✅ Yes | Normalized to CIM values: delivered, blocked, failed |
protocol |
Email protocol involved | ✅ Yes | Extracted from the log filename and mapped to: smtp, imap, pop3 |
src |
Client/Sender IP address | ✅ Yes | Extracted from _raw or Binding to local IP in delivery logs |
src_user |
Sender / login user | ✅ Yes | |
recipient |
Email recipient | ✅ Yes | |
dest |
Destination host | ✅ Yes | Aliased from dest_host |
message_id |
Globally unique message ID | ✅ Yes | |
size |
Message size in bytes | ✅ Yes | Extracted from SIZE= |
subject |
Message subject | ✅ Yes | Extracted from Subject: header if present |
The TA applies the email tag to all SmarterMail events, enabling the CIM Email Data Model to recognize and index them. This is essential for ES correlation searches and dashboards to work correctly.
| Field | Description | CIM Alignment |
|---|---|---|
session_id |
SmarterMail session ID | ❌ No |
status_code |
SMTP response code | ✅ Yes (as status_code) |
status_message |
SMTP response message | ❌ No |
error_domain |
Domain with DKIM error | ❌ No |
dkim_selector |
DKIM selector | ❌ No |
dest_host |
Remote MX hostname | ✅ Yes (aliased to dest) |
mx_preference |
MX record preference | ❌ No |
user |
Login username | ✅ Yes (as user) |
The TA uses two CSV lookup files located in the lookups/ directory for value normalization:
smartermail_cim_action_map.csv: Maps raw delivery statuses (e.g.,Delivered,Bounced) to CIM-compliantactionvalues.smartermail_cim_protocol_map.csv: Maps log filename types (e.g.,delivery,smtpLog) to CIM-compliantprotocolvalues.
This TA includes pre-built saved searches to help you monitor security and operational events. After installation, you can find them under Settings > Searches, reports, and alerts.
| Report Name | Description | Schedule |
|---|---|---|
SmarterMail - Failed Login Attempts by IP and User |
Identifies brute-force login attempts by correlating source IP and targeted user within a session. | Hourly |
SmarterMail - Top Source IPs for Failed Logins |
Shows the top source IPs with the most failed login attempts. | Every 6 hours |
After installing or updating this TA, you must rebuild the Email Data Model Acceleration in Splunk ES:
- Go to Settings > Data Models > Email.
- Set the Summary Range to a reasonable period (e.g., 7 Days) to speed up the process.
- Click Rebuild and wait for the status to reach 100%.
1.0.3
The official, validated version of this Add-on is available on Splunkbase: https://splunkbase.splunk.com/app/10111
The source code for this Add-on is available on GitHub: https://github.com/shahpasandi/SmarterMail-addon
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Mohammad Shahpasandi
- GitHub: @shahpasandi
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.