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.
This commit is contained in:
Andreas Rammhold 2021-03-07 11:26:35 +01:00
parent 49d65a4d05
commit 7627c29268
Failed to generate hash of commit

View file

@ -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;