Updated configuration files

This commit is contained in:
Mauro D
2024-01-19 19:10:31 +01:00
parent 02faa04e27
commit d7d27063d8
10 changed files with 98 additions and 90 deletions

View File

@@ -10,6 +10,11 @@ DOMAIN="example.org"
STORE="rocksdb"
FTS_STORE="rocksdb"
BLOB_STORE="rocksdb"
#STORE="sqlite"
#FTS_STORE="sqlite"
#BLOB_STORE="sqlite"
FEATURES="foundationdb postgres mysql rocks elastic s3 redis"
#FEATURES="sqlite"
# Directories
DIRECTORY="internal"
@@ -59,5 +64,5 @@ mkdir -p $BASE_DIR/etc/dkim
openssl genpkey -algorithm RSA -out $BASE_DIR/etc/dkim/$DOMAIN.key
# Create admin user
SET_ADMIN_USER="admin" SET_ADMIN_PASS="secret" cargo run -p mail-server --no-default-features --features "foundationdb postgres mysql rocks elastic s3 redis" -- --config=/tmp/stalwart-test/etc/config.toml
cargo run -p mail-server --no-default-features --features "foundationdb postgres mysql rocks elastic s3 redis" -- --config=/tmp/stalwart-test/etc/config.toml
SET_ADMIN_USER="admin" SET_ADMIN_PASS="secret" cargo run -p mail-server --no-default-features --features "$FEATURES" -- --config=/tmp/stalwart-test/etc/config.toml
cargo run -p mail-server --no-default-features --features "$FEATURES" -- --config=/tmp/stalwart-test/etc/config.toml

View File

@@ -93,9 +93,9 @@ certificate = "default"
reject-non-fqdn = false
[session.rcpt]
relay = [ { if = "authenticated-as", ne = "", then = true },
relay = [ { if = "!is_empty(authenticated_as)", then = true },
{ else = false } ]
directory = "auth"
directory = "'auth'"
[session.rcpt.errors]
total = 5
@@ -113,8 +113,8 @@ hash = 64
type = "system"
[queue.outbound]
next-hop = [ { if = "rcpt-domain", in-list = "local/domains", then = "local" },
{ if = "rcpt-domain", in-list = "local/remote-domains", then = "mock-smtp" },
next-hop = [ { if = "key_exists('local/domains', rcpt_domain)", then = "'local'" },
{ if = "key_exists('local/remote-domains', rcpt_domain)", then = "'mock-smtp'" },
{ else = false } ]
[remote."mock-smtp"]
@@ -127,7 +127,7 @@ implicit = false
allow-invalid-certs = true
[session.extensions]
future-release = [ { if = "authenticated-as", ne = "", then = "99999999d"},
future-release = [ { if = "!is_empty(authenticated_as)", then = "99999999d"},
{ else = false } ]
[store."sqlite"]

View File

@@ -105,9 +105,9 @@ fail2ban = "101/5s"
reject-non-fqdn = false
[session.rcpt]
relay = [ { if = "authenticated-as", ne = "", then = true },
relay = [ { if = "!is_empty(authenticated_as)", then = true },
{ else = false } ]
directory = "auth"
directory = "'auth'"
[session.rcpt.errors]
total = 5
@@ -125,8 +125,8 @@ hash = 64
type = "system"
[queue.outbound]
next-hop = [ { if = "rcpt-domain", in-list = "local/domains", then = "local" },
{ if = "rcpt-domain", in-list = "local/remote-domains", then = "mock-smtp" },
next-hop = [ { if = "key_exists('local/domains', rcpt_domain)", then = "'local'" },
{ if = "key_exists('local/remote-domains', rcpt_domain)", then = "'mock-smtp'" },
{ else = false } ]
[remote."mock-smtp"]
@@ -139,7 +139,7 @@ implicit = false
allow-invalid-certs = true
[session.extensions]
future-release = [ { if = "authenticated-as", ne = "", then = "99999999d"},
future-release = [ { if = "!is_empty(authenticated_as)", then = "99999999d"},
{ else = false } ]
[store."sqlite"]