FAKEMAIL
NAME
fakemail - Simple logging (and printing) SMTP black hole
SYNOPSIS
fakemail [OPTION]...
DESCRIPTION
Logs all the SMTP traffic it receives. Logging to a directory
will create a new file for each email processed.
If neither the `-dir` or `-p` flags are present then only the
message to, from, subject and overall size in bytes will be
written to the log.
-addr STRING
address to bind to (default ":2525")
-dir DIRECTORY
folder to log the emails to
-p Print email messages to the log
-s Skip the date prefix if redirecting stdout to a logging
service
-t Trace SMTP actions, Quite verbose
EXAMPLES
If running fakemail with directory output:
fakemail -dir /tmp
Email will be written to the /tmp directory with a filename
format like:
/tmp/20210109-1954-01610250859386380246.eml
The first part of the file name is the date, to the minute, in
local time. The date is for easy refernce. The nanosecond
timestamp contains all the required infomation to trace the the
ingest time of the mail.
LICENCE
BSD-3-Clause, See LICENCE