diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2021-03-07 11:26:35 +0100 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2021-03-07 11:26:35 +0100 |
commit | 7627c29268d2f49ede330a806524447ad9cf9c3f (patch) | |
tree | 0965b4a6aaf2f988730d815a3796907720edc65c | |
parent | 49d65a4d058b9c427f085468f4b95c7b7c0492c7 (diff) |
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.
-rw-r--r-- | mail-server/dovecot.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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; |