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
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86

View File

@ -33,7 +33,7 @@ let
"maildir:${cfg.mailDirectory}/%d/%n${maildirLayoutAppendix}" "maildir:${cfg.mailDirectory}/%d/%n${maildirLayoutAppendix}"
+ (lib.optionalString + (lib.optionalString
(cfg.fullTextSearch.enable && (cfg.fullTextSearch.indexDir != null)) (cfg.fullTextSearch.enable && (cfg.fullTextSearch.indexDir != null))
":INDEX=${cfg.fullTextSearch.indexDir}" ":INDEX=${cfg.fullTextSearch.indexDir}/%d/%n"
); );
postfixCfg = config.services.postfix; postfixCfg = config.services.postfix;