From f6b14ceb1bfb07a772d8558fe779a8696e7103cb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 1 Feb 2019 18:29:52 +0100 Subject: Pidgeonhole --- ymir.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ymir.nix b/ymir.nix index 5826f22d..c157d75e 100644 --- a/ymir.nix +++ b/ymir.nix @@ -184,6 +184,7 @@ in rec { 64738 # murmur 53 # DNS 6523 # Obby + 4190 # Managesieve ]; allowedUDPPorts = [ 64738 # murmur 53 # DNS @@ -769,6 +770,8 @@ in rec { user = postfix group = postfix } + + mail_plugins = $mail_plugins sieve } namespace inbox { @@ -784,10 +787,27 @@ in rec { quota_status_overquota = "552 5.2.2 Mailbox is full" quota_status_success = DUNNO quota_status_nouser = DUNNO + quota_grace = 10%% } protocol imap { mail_max_userip_connections = 50 + mail_plugins = $mail_plugins imap_quota + } + + service managesieve-login { + inet_listener sieve { + port = 4190 + } + } + + service managesieve {} + + protocol sieve {} + + plugin { + sieve = file:~/sieve;active=~/.dovecot.sieve + sieve_redirect_envelope_from = orig_recipient } ''; }; -- cgit v1.2.3