Skip to content

Instantly share code, notes, and snippets.

@VictorKoenders
Created March 4, 2022 17:55
Show Gist options
  • Save VictorKoenders/0d503d22b5ff21654ad136e61dff8a7b to your computer and use it in GitHub Desktop.
Save VictorKoenders/0d503d22b5ff21654ad136e61dff8a7b to your computer and use it in GitHub Desktop.
# The database url to connect to
# To create a new database, run `./migrations/migrate.sh`
database = "postgres://localhost/mail"
## Set this to a valid value to receive command line debug info
## Leave empty for no debugging
## Valid values: "error", "warn", "info", "debug", "trace"
##
## smpt_to_postgress currently outputs these 2 channels:
## "info": information about:
## - what ports the program is running on
## - incoming connections
## - database queries
## "warn": Failed to accept incoming connections, and shutting down
## "error": Fatal database error
# debug_level = ""
## Max file size in bytes. Defaults to 10MB.
# max_file_size = 10485760 # in bytes
## Global SSL files. If these are present, all hosts will use this cert
# cert = "keys/server.cert"
# key = "keys/server.key"
## Add an entry for each host you want to listen on
[[host]]
host = "0.0.0.0"
port = 25
## Path to the SSL files. If any of these values are missing, the service will not use TLS
# cert = "keys/server.cert"
# key = "keys/server.key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment