From 6813eb84ced6eca21e5a92d751d48ae6147c5451 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 19 Oct 2025 20:44:04 +1100 Subject: [PATCH] feat: add default settings to stalwart - bump release - add default admin user/pass - change http service to listen on all interfaces --- rpms/stalwart-foundationdb/0.13.4/release | 2 +- rpms/stalwart-foundationdb/resources/scripts/postinstall.sh | 6 +++++- rpms/stalwart/0.13.4/release | 2 +- rpms/stalwart/resources/scripts/postinstall.sh | 6 +++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/rpms/stalwart-foundationdb/0.13.4/release b/rpms/stalwart-foundationdb/0.13.4/release index d00491f..0cfbf08 100644 --- a/rpms/stalwart-foundationdb/0.13.4/release +++ b/rpms/stalwart-foundationdb/0.13.4/release @@ -1 +1 @@ -1 +2 diff --git a/rpms/stalwart-foundationdb/resources/scripts/postinstall.sh b/rpms/stalwart-foundationdb/resources/scripts/postinstall.sh index dd4c4c0..89e2920 100644 --- a/rpms/stalwart-foundationdb/resources/scripts/postinstall.sh +++ b/rpms/stalwart-foundationdb/resources/scripts/postinstall.sh @@ -23,7 +23,7 @@ bind = ["127.0.0.1:143"] protocol = "imap" [server.listener.http] -bind = ["127.0.0.1:8080"] +bind = ["[::]:8080"] protocol = "http" [storage] @@ -44,6 +44,10 @@ path = "/var/lib/stalwart/blobs" [directory."internal"] type = "internal" store = "foundationdb" + +[authentication.fallback-admin] +user = "admin" +secret = "$6$PAEtTGE/jbt9B/FQ$lYXn/whSh7rzegMdA6W8vuw2E/3IDFjpb0edXRqrl1d8i2KQF6Qm.ESmZ3j5jIHCTPSIH3JYBvIgvIbk9sH3p1" EOF chown stalwart:stalwart /opt/stalwart/etc/config.toml diff --git a/rpms/stalwart/0.13.4/release b/rpms/stalwart/0.13.4/release index d00491f..0cfbf08 100644 --- a/rpms/stalwart/0.13.4/release +++ b/rpms/stalwart/0.13.4/release @@ -1 +1 @@ -1 +2 diff --git a/rpms/stalwart/resources/scripts/postinstall.sh b/rpms/stalwart/resources/scripts/postinstall.sh index bfd92ac..158ca95 100644 --- a/rpms/stalwart/resources/scripts/postinstall.sh +++ b/rpms/stalwart/resources/scripts/postinstall.sh @@ -23,7 +23,7 @@ bind = ["127.0.0.1:143"] protocol = "imap" [server.listener.http] -bind = ["127.0.0.1:8080"] +bind = ["[::]:8080"] protocol = "http" [storage] @@ -44,6 +44,10 @@ path = "/var/lib/stalwart/blobs" [directory."internal"] type = "internal" store = "sqlite" + +[authentication.fallback-admin] +user = "admin" +secret = "$6$PAEtTGE/jbt9B/FQ$lYXn/whSh7rzegMdA6W8vuw2E/3IDFjpb0edXRqrl1d8i2KQF6Qm.ESmZ3j5jIHCTPSIH3JYBvIgvIbk9sH3p1" EOF chown stalwart:stalwart /opt/stalwart/etc/config.toml