mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-01-09 09:17:45 +08:00
57 lines
1.1 KiB
TOML
57 lines
1.1 KiB
TOML
#############################################
|
|
# Server configuration
|
|
#############################################
|
|
|
|
[server]
|
|
hostname = "__HOST__"
|
|
max-connections = 8192
|
|
|
|
[server.run-as]
|
|
user = "stalwart-mail"
|
|
group = "stalwart-mail"
|
|
|
|
[server.tls]
|
|
enable = true
|
|
implicit = false
|
|
timeout = "1m"
|
|
certificate = "default"
|
|
#sni = [{subject = "", certificate = ""}]
|
|
#protocols = ["TLSv1.2", TLSv1.3"]
|
|
#ciphers = []
|
|
ignore-client-order = true
|
|
|
|
[server.socket]
|
|
reuse-addr = true
|
|
#reuse-port = true
|
|
backlog = 1024
|
|
#ttl = 3600
|
|
#send-buffer-size = 65535
|
|
#recv-buffer-size = 65535
|
|
#linger = 1
|
|
#tos = 1
|
|
|
|
[global]
|
|
shared-map = {shard = 32, capacity = 10}
|
|
#thread-pool = 8
|
|
|
|
#[global.tracing]
|
|
#method = "stdout"
|
|
#level = "trace"
|
|
|
|
#[global.tracing]
|
|
#method = "open-telemetry"
|
|
#transport = "http"
|
|
#endpoint = "https://127.0.0.1/otel"
|
|
#headers = ["Authorization: <place_auth_here>"]
|
|
#level = "debug"
|
|
|
|
[global.tracing]
|
|
method = "log"
|
|
path = "__PATH__/logs"
|
|
prefix = "stalwart.log"
|
|
rotate = "daily"
|
|
level = "info"
|
|
|
|
[certificate."default"]
|
|
cert = "file://__CERT_PATH__"
|
|
private-key = "file://__PK_PATH__"
|