Configuration - pipakin/node-postal GitHub Wiki

All configuration is stored in config.js. The following fields are defined:

platform

This defines the "platform" node-postal is being run on. The default is maildir, which is written with linux systems in mind. It stores mail in /home/[user]/Maildir.

Default: maildir

usermap

This defines the function that will translate email addresses into node-postal usernames. By default, it is "simple", which defines the username as the first part of the email address.

Default: simple

tlsenabled

Whether or not tls communication is enabled.

tlsonly

Whether to force tls communication for relaying smtp messages.

privateKeyFile

Path to the private key file to use for tls communication.

certificateFile

Path to the certificate file to use for tls communication.

blockEmailScore

The score at which the email will be rejected. Rejected emails are sent to the platform's "spam" folder (the default platform simply deletes them). If they are rejected with this score prior to the "DATA" command, the email is never stored in the system.

Default: 99

markAsSpamScore

The score at which the email is marked with the SPAM tag in the subject.

Default: 60

domains

The list of domains that are considered "local".