Put admin conf in dovecot with perms
This commit is contained in:
parent
5bcd6e001c
commit
87887d02c2
10
dovecot.nix
10
dovecot.nix
|
@ -319,6 +319,12 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.etc."dovecot/conf.d/admin.conf" = {
|
||||||
|
source = cfg.admin-conf;
|
||||||
|
user = config.services.dovecot2.user;
|
||||||
|
mode = 400;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
prometheus.exporters.dovecot = {
|
prometheus.exporters.dovecot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -384,7 +390,7 @@ in {
|
||||||
in ''
|
in ''
|
||||||
## Extra Config
|
## Extra Config
|
||||||
|
|
||||||
!include ${cfg.admin-conf}
|
!include /etc/dovecot/conf.d/admin.conf
|
||||||
|
|
||||||
${lib.optionalString cfg.debug ''
|
${lib.optionalString cfg.debug ''
|
||||||
mail_debug = yes
|
mail_debug = yes
|
||||||
|
@ -401,7 +407,7 @@ in {
|
||||||
mail_plugins = $mail_plugins sieve fts fts_solr
|
mail_plugins = $mail_plugins sieve fts fts_solr
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugin {
|
||||||
fts = solr
|
fts = solr
|
||||||
fts_solr = url=http://${cfg.solr.host}:${
|
fts_solr = url=http://${cfg.solr.host}:${
|
||||||
toString cfg.solr.port
|
toString cfg.solr.port
|
||||||
|
|
Loading…
Reference in New Issue