summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-03 23:56:56 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-03 23:56:56 +0200
commita9a81bc6f0d8483c517b2c116471f034cd666bc1 (patch)
tree7370077ebe638f560f6d5ab48d35c99f3ab13ca9
parentda0a32affaf373f4bb864697a2acceb21bdec0c0 (diff)
downloadnixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar
nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.gz
nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.bz2
nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.xz
nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.zip
mail quotas
-rw-r--r--ymir.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index 3585a5cc..78a82359 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -351,6 +351,7 @@ in rec {
351 permit_mynetworks, 351 permit_mynetworks,
352 reject_non_fqdn_helo_hostname, 352 reject_non_fqdn_helo_hostname,
353 reject_invalid_helo_hostname, 353 reject_invalid_helo_hostname,
354 check_policy_service unix:policy,
354 permit 355 permit
355 356
356 smtpd_sender_restrictions = 357 smtpd_sender_restrictions =
@@ -400,6 +401,24 @@ in rec {
400 separator = / 401 separator = /
401 inbox = yes 402 inbox = yes
402 } 403 }
404
405 plugin {
406 quota = maildir:User quota
407 quota_rule = ?:storage=1GB
408 quota_rule2 = Trash:storage=+10%%
409 quota_status_overquota = "552 5.2.2 Mailbox is full"
410 }
411
412 service quota-status {
413 executable = quota-status -p postfix
414 unix_listener /var/lib/postfix/queue/policy {
415 mode = 0660
416 user = postfix
417 group = postfix
418 # You can choose any port you want
419 }
420 client_limit = 1
421 }
403 ''; 422 '';
404 }; 423 };
405 security.pam.services.dovecot2.text = '' 424 security.pam.services.dovecot2.text = ''