summaryrefslogtreecommitdiff
path: root/os/kay/modules/mail.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/kay/modules/mail.nix')
-rw-r--r--os/kay/modules/mail.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/os/kay/modules/mail.nix b/os/kay/modules/mail.nix
index 5c8cb96..bd2681a 100644
--- a/os/kay/modules/mail.nix
+++ b/os/kay/modules/mail.nix
@@ -19,7 +19,7 @@ in {
"mail.${domain}/password" = {};
};
- systemd.services.stalwart-mail.serviceConfig.loadCredential = [
+ systemd.services.stalwart-mail.serviceConfig.LoadCredential = [
"password:${config.sops.secrets."mail.${domain}/password".path}"
"dkim_rsa:${config.sops.secrets."mail.${domain}/dkim_rsa".path}"
@@ -101,10 +101,15 @@ in {
lookup = "rocksdb";
directory = "in-memory";
};
- store.rocksdb = {
- type = "rocksdb";
- path = "rocksdb";
- compression = "lz4";
+ store.postgresql = {
+ type = "postgresql";
+ host = "localhost";
+ database = "stalwart";
+ user = "stalwart";
+ password = "ass";
+ timeout = "15s";
+ tls.enable = false;
+ pool.max-connections = 10;
};
directory."in-memory" = {