Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from docjyJ/patch-1
Browse files Browse the repository at this point in the history
Fix duplicate cert
  • Loading branch information
marcoambrosini authored Jun 6, 2024
2 parents 2f4af57 + a085c7d commit b2df899
Showing 1 changed file with 60 additions and 25 deletions.
85 changes: 60 additions & 25 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,67 @@
server.http.use-x-forwarded = true

[server.listener]
https.bind = "[::]:10003"
https.protocol = "http"
https.tls.implicit = true
imaps.bind = "[::]:993"
imaps.protocol = "imap"
imaps.tls.implicit = true
sieve.bind = "[::]:4190"
sieve.protocol = "managesieve"
smtp.bind = "[::]:25"
smtp.protocol = "smtp"
submissions.bind = "[::]:465"
submissions.protocol = "smtp"
submissions.tls.implicit = true

[tracer.stdout]
ansi = true
enable = true
# https://github.com/stalwartlabs/mail-server/blob/main/resources/config/config.toml

[server.listener."smtp"]
bind = ["[::]:25"]
protocol = "smtp"

[server.listener."submissions"]
bind = ["[::]:465"]
protocol = "smtp"
tls.implicit = true

[server.listener."imaptls"]
bind = ["[::]:993"]
protocol = "imap"
tls.implicit = true

[server.listener."sieve"]
bind = ["[::]:4190"]
protocol = "managesieve"

[server.listener."caddy-aio"]
protocol = "http"
bind = ["[::]:10003"]

[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 = "trace"
type = "stdout"
path = "/var/log"
prefix = "stalwart.log"
rotate = "daily"
ansi = false
enable = true

[lookup.nextcloud-aio]
domain = "%{env:MAIL_DOMAIN}%"
hostname = "mail.%{env:MAIL_DOMAIN}%"
[tracer."stdout"]
type = "stdout"
level = "info"
ansi = false
enable = true

[lookup."nextcloud-aio"]
domain = "%{env:NC_DOMAIN}%"
hostname = "mail.%{env:NC_DOMAIN}%"

[certificate.nextcloud-aio]
cert = "%{file:/opt/aio-certs/fullchain.crt}%"
default = true
cert = "%{file:/opt/aio-certs/privkey.key}%"
private-key = "%{file:/opt/aio-certs/privkey.key}%"

[authentication.fallback-admin]
user = "admin"
secret = "%{env:STALWART_USER_PASS}%"

0 comments on commit b2df899

Please sign in to comment.