mailserver: Add ManageSieve

This commit is contained in:
Simon Bruder 2023-08-01 15:19:24 +02:00
parent 167b488ff2
commit 08b2bac970
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 10 additions and 0 deletions

View file

@ -17,6 +17,7 @@ lib.mkIf cfg.enable {
enableLmtp = true;
enablePAM = false;
protocols = [ "sieve" ];
mailUser = "vmail";
mailGroup = "vmail";
@ -95,6 +96,7 @@ lib.mkIf cfg.enable {
plugin {
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve = file:/var/lib/sieve/%d/%n/scripts;active=/var/lib/sieve/%d/%n/active.sieve
${lib.optionalString cfg.spam.enable ''
imapsieve_mailbox1_name = Spam
@ -110,6 +112,12 @@ lib.mkIf cfg.enable {
sieve_global_extensions = +vnd.dovecot.pipe
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
'';
};
systemd.services.dovecot2 = {
@ -147,6 +155,7 @@ lib.mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [
143 # IMAP
993 # IMAP (implicit TLS)
4190 # ManageSieve
];
security.acme.certs."${cfg.fqdn}".postRun = ''

View file

@ -134,6 +134,7 @@ in
hunspellDicts.de-de
hunspellDicts.en-gb-ise # dictionary
libreoffice # office suite
libsForQt5.pim-sieve-editor # sieve editor
xournalpp # notebook
# tools