Files
sharedinbox/stalwart-dev/config.toml
T

77 lines
1.5 KiB
TOML
Raw Normal View History

# Minimal Stalwart Mail configuration for local development and integration tests.
#
# HTTP only — localhost testing, no TLS.
# Two test accounts (alice, bob) for multi-account sync tests.
[server]
hostname = "localhost"
[[server.listener]]
id = "jmap"
bind = ["0.0.0.0:8080"]
protocol = "http"
[[server.listener]]
id = "imap"
bind = ["0.0.0.0:1430"]
protocol = "imap"
[[server.listener]]
id = "smtp"
bind = ["0.0.0.0:1025"]
protocol = "smtp"
[[server.listener]]
id = "managesieve"
bind = ["0.0.0.0:4190"]
protocol = "managesieve"
[store."db"]
type = "sqlite"
path = "/tmp/stalwart/data.sqlite"
[storage]
data = "db"
fts = "db"
blob = "db"
lookup = "db"
directory = "memory"
[tracer."stdout"]
type = "stdout"
level = "warn"
ansi = false
enable = true
[directory."memory"]
type = "memory"
[[directory."memory".principals]]
class = "individual"
2026-04-23 17:43:20 +02:00
name = "alice@example.com"
secret = "secret"
2026-04-23 17:43:20 +02:00
email = ["alice@example.com"]
[[directory."memory".principals]]
class = "individual"
2026-04-23 17:43:20 +02:00
name = "bob@example.com"
secret = "secret"
2026-04-23 17:43:20 +02:00
email = ["bob@example.com"]
[authentication.fallback-admin]
user = "admin"
secret = "admin"
# Allow LOGIN/PLAIN on the clear-text dev ports (no TLS in local test env).
# By default Stalwart only advertises PLAIN/LOGIN when is_tls — override that.
[imap.auth]
allow-plain-text = true
[session.auth]
mechanisms = "[plain, login, oauthbearer, xoauth2]"
allow-plain-text = true
2026-04-23 17:43:20 +02:00
# Disable rate limiting for local development/testing.
[authentication.rate-limit]
enable = false