mailserver: Add ManageSieve
This commit is contained in:
parent
167b488ff2
commit
08b2bac970
|
@ -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 = ''
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue