From 7627c29268d2f49ede330a806524447ad9cf9c3f Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sun, 7 Mar 2021 11:26:35 +0100 Subject: [PATCH] Store FTS index in directory per domain & user to avoid collisions Previously all the xapian files and logs would be stored in the same folder for all users. This couid probably lead to weird situations where all users get the same search results. --- mail-server/dovecot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 926307a..c4811e1 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -33,7 +33,7 @@ let "maildir:${cfg.mailDirectory}/%d/%n${maildirLayoutAppendix}" + (lib.optionalString (cfg.fullTextSearch.enable && (cfg.fullTextSearch.indexDir != null)) - ":INDEX=${cfg.fullTextSearch.indexDir}" + ":INDEX=${cfg.fullTextSearch.indexDir}/%d/%n" ); postfixCfg = config.services.postfix;