more mailserver config
This commit is contained in:
parent
0eba0ac5f7
commit
c4f832065d
1 changed files with 35 additions and 13 deletions
|
@ -25,7 +25,7 @@ let vs = config.vault-secrets.secrets; in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vault-secrets.secrets.mailserver = {
|
vault-secrets.secrets.mailserver = {
|
||||||
services = [ "dovecot2" "postfix"];
|
services = [ "dovecot2" "postfix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue