more mailserver config

This commit is contained in:
Vivian 2022-09-22 10:01:42 +02:00
parent 0eba0ac5f7
commit c4f832065d

View file

@ -40,10 +40,30 @@ let vs = config.vault-secrets.secrets; in
}; };
certificateScheme = 3; certificateScheme = 3;
indexDir = "/var/lib/dovecot/indices";
fullTextSearch = {
enable = true;
# index new email as they arrive
autoIndex = true;
# this only applies to plain text attachments, binary attachments are never indexed
indexAttachments = true;
enforced = "body";
memoryLimit = 2000;
autoIndexExclude = [ "\\Junk" ];
};
}; };
services.roundcube = { services.roundcube = {
enable = true; enable = true;
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
plugins = [
"archive"
"enigma"
"markasjunk"
"persistent_login"
];
# this is the url of the vhost, not necessarily the same as the fqdn of # this is the url of the vhost, not necessarily the same as the fqdn of
# the mailserver # the mailserver
hostName = "webmail.0x76.dev"; hostName = "webmail.0x76.dev";
@ -56,7 +76,9 @@ let vs = config.vault-secrets.secrets; in
''; '';
}; };
services.nginx.enable = true; services.nginx = {
enable = true;
};
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.defaults.email = "victor@xirion.net"; security.acme.defaults.email = "victor@xirion.net";