SMTP Collector¶
See the design guide for an overview of using ACE to scan emails extracted from SMTP session data.
Installation¶
- Install zeek into
/opt/bro
. - Symlink the
/opt/ace/bro
directory to/opt/bro/share/zeek/site/ace
. - Edit
/opt/bro/share/zeek/site/local.zeek
and add the following lines at the end of the file.
redef ignore_checksums = T;
@load ace/ace_local
@load ace/ace_smtp
- Edit
bro/ace_local.zeek
and modify therecord_smtp_stream
if required. - Start or restart zeek.
Configuration¶
The [bro]
section of the configuration settings define what directory the SMTP session files are stored in relative to the data directory.
[bro]
; the directory that contains the SMTP streams generated by bro/ace_smtp.bro (relative to DATA_DIR)
smtp_dir = var/bro/smtp
Monitoring and Maintenance¶
The smtp_dir
directory should be monitored for file age and file count. Files that are old should be investigated in the logs to discover why they were not processed. You can manually create the .ready
files to force the system to process them.
If the number of files in this directory is growing then the collector is either not running or unable to process the files fast enough.