From 80d016ae8fe71ec3ab31c1d508b340a1a1ef22a9 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 14 Jul 2023 15:47:11 +0200 Subject: [PATCH] enable mail quotas Currently set to 10 gigabytes. Nobody I know ever reached that limit, so it should be fine --- modules/mail.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mail.nix b/modules/mail.nix index 3124c88..d5be613 100644 --- a/modules/mail.nix +++ b/modules/mail.nix @@ -94,6 +94,7 @@ in "reject_unauth_destination" "reject_unauth_pipelining" "reject_invalid_hostname" + "check_policy_service inet:localhost:12340" ]; smtpd_relay_restrictions = [ "permit_sasl_authenticated" @@ -119,7 +120,8 @@ in dovecot2 = { enable = true; enableImap = true; - enableQuota = false; + enableQuota = true; + quotaGlobalPerUser = "10G"; enableLmtp = true; mailLocation = "maildir:~/Maildir"; sslServerCert = "/var/lib/acme/${hostname}/fullchain.pem";