extract config files out of setup.sh
This commit is contained in:
parent
41ae856938
commit
f6fe57aaf1
8 changed files with 445 additions and 396 deletions
5
templates/var/lib/stalwart-mail/cli.sh
Normal file
5
templates/var/lib/stalwart-mail/cli.sh
Normal 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" "$@")
|
||||
}
|
70
templates/var/lib/stalwart-mail/etc/config.toml
Normal file
70
templates/var/lib/stalwart-mail/etc/config.toml
Normal 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} ]
|
Loading…
Add table
Add a link
Reference in a new issue