summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir.nix')
-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 = ''