mailserver: Add ManageSieve
This commit is contained in:
parent
167b488ff2
commit
08b2bac970
|
@ -17,6 +17,7 @@ lib.mkIf cfg.enable {
|
||||||
|
|
||||||
enableLmtp = true;
|
enableLmtp = true;
|
||||||
enablePAM = false;
|
enablePAM = false;
|
||||||
|
protocols = [ "sieve" ];
|
||||||
|
|
||||||
mailUser = "vmail";
|
mailUser = "vmail";
|
||||||
mailGroup = "vmail";
|
mailGroup = "vmail";
|
||||||
|
@ -95,6 +96,7 @@ lib.mkIf cfg.enable {
|
||||||
|
|
||||||
plugin {
|
plugin {
|
||||||
sieve_plugins = sieve_imapsieve sieve_extprograms
|
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 ''
|
${lib.optionalString cfg.spam.enable ''
|
||||||
imapsieve_mailbox1_name = Spam
|
imapsieve_mailbox1_name = Spam
|
||||||
|
@ -110,6 +112,12 @@ lib.mkIf cfg.enable {
|
||||||
|
|
||||||
sieve_global_extensions = +vnd.dovecot.pipe
|
sieve_global_extensions = +vnd.dovecot.pipe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service managesieve-login {
|
||||||
|
inet_listener sieve {
|
||||||
|
port = 4190
|
||||||
|
}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
systemd.services.dovecot2 = {
|
systemd.services.dovecot2 = {
|
||||||
|
@ -147,6 +155,7 @@ lib.mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
143 # IMAP
|
143 # IMAP
|
||||||
993 # IMAP (implicit TLS)
|
993 # IMAP (implicit TLS)
|
||||||
|
4190 # ManageSieve
|
||||||
];
|
];
|
||||||
|
|
||||||
security.acme.certs."${cfg.fqdn}".postRun = ''
|
security.acme.certs."${cfg.fqdn}".postRun = ''
|
||||||
|
|
|
@ -134,6 +134,7 @@ in
|
||||||
hunspellDicts.de-de
|
hunspellDicts.de-de
|
||||||
hunspellDicts.en-gb-ise # dictionary
|
hunspellDicts.en-gb-ise # dictionary
|
||||||
libreoffice # office suite
|
libreoffice # office suite
|
||||||
|
libsForQt5.pim-sieve-editor # sieve editor
|
||||||
xournalpp # notebook
|
xournalpp # notebook
|
||||||
|
|
||||||
# tools
|
# tools
|
||||||
|
|
Loading…
Reference in a new issue