diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-03 23:56:56 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-03 23:56:56 +0200 |
commit | a9a81bc6f0d8483c517b2c116471f034cd666bc1 (patch) | |
tree | 7370077ebe638f560f6d5ab48d35c99f3ab13ca9 | |
parent | da0a32affaf373f4bb864697a2acceb21bdec0c0 (diff) | |
download | nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.gz nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.bz2 nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.tar.xz nixos-a9a81bc6f0d8483c517b2c116471f034cd666bc1.zip |
mail quotas
-rw-r--r-- | ymir.nix | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 = '' |