extract config files out of setup.sh

This commit is contained in:
Jacob Lifshay 2024-07-04 22:03:06 -07:00
parent 41ae856938
commit f6fe57aaf1
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c
8 changed files with 445 additions and 396 deletions

View file

@ -0,0 +1,5 @@
mail_passwd="$mail_passwd"
function stalwart-cli()
{
(cd "$wd" && CREDENTIALS="admin:$mail_passwd" exec docker-compose -p server exec -T -e CREDENTIALS mail stalwart-cli -u "http://localhost" "$@")
}

View file

@ -0,0 +1,70 @@
[server.listener."smtp"]
bind = ["[::]:25"]
protocol = "smtp"
[server.listener."submission"]
bind = ["[::]:587"]
protocol = "smtp"
[server.listener."submissions"]
bind = ["[::]:465"]
protocol = "smtp"
tls.implicit = true
[server.listener."imaptls"]
bind = ["[::]:993"]
protocol = "imap"
tls.implicit = true
[server.listener.pop3s]
bind = "[::]:995"
protocol = "pop3"
tls.implicit = true
[server.listener.http]
protocol = "http"
bind = "[::]:80"
[server.http]
use-x-forwarded = true
[certificate.default]
cert = "%{file:/etc/letsencrypt/live/server/fullchain.pem}%"
private-key = "%{file:/etc/letsencrypt/live/server/privkey.pem}%"
default = true
[storage]
data = "rocksdb"
fts = "rocksdb"
blob = "rocksdb"
lookup = "rocksdb"
directory = "internal"
[store.rocksdb]
type = "rocksdb"
path = "/opt/stalwart-mail/data"
compression = "lz4"
[directory.internal]
type = "internal"
store = "rocksdb"
[tracer.log]
type = "log"
level = "info"
path = "/opt/stalwart-mail/logs"
prefix = "stalwart.log"
rotate = "daily"
ansi = false
enable = true
[authentication.fallback-admin]
user = "admin"
secret = "$mail_passwd_hash"
[lookup.default]
hostname = "mail.$BASE_DOMAIN_NAME"
[session.auth]
must-match-sender = [ {if = "authenticated_as == 'forum-noreply'", then = false},
{else = true} ]