log
The log output writes the fields of each email to the standard output of the server, between two separator
lines:
INFO Email received 2026-11-30T09:15:02.204Z from 127.0.0.1--------------------------------------------------------------------------------from: "Alice" <alice@example.com>to: bob@example.combcc: carol@example.comsubject: Hellotext: Hi Bob,see you tomorrow.
--------------------------------------------------------------------------------fields chooses the fields and their order, among from, to, cc, bcc, subject, text and html.
The default is every field but html. A field without a value is skipped.
from,toandcccome from the email headers.bcclists the recipients of the flow (RCPT TO) that are not in the To or Cc headers: the blind copies.
When to use it
Section titled “When to use it”- A debug server with nothing to clean up: the emails are in the server output, for example
docker logs. - Tracing what a flow receives while setting up other outputs.
The output prints directly to the console: it does not go through the configured
loggers, so it is not written to a FILE logger, and "loggers": [] does not silence it.
The text and HTML bodies are logged in full, so avoid text and html in fields where logs are kept or
shared.
Options
Section titled “Options”Example
Section titled “Example”Accept emails from the local machine on port 10026 and log them:
// Can replace fakeSMTP.jar{ "$schema": "https://raw.githubusercontent.com/loopingz/smtp-relay/main/config.schema.json", "flows": { "localhost": { "filters": [ // Allow only localhost { "type": "whitelist", "ips": ["127.0.0.1"] } ], "outputs": [ { // We just log to the console "type": "log" } ] } }, "port": 10026, "options": { "disableReverseLookup": false, // Do not require auth "authOptional": true }}