From a23f186c65ee743a98d0b88b162b635fd88ce717 Mon Sep 17 00:00:00 2001 From: John Supplee Date: Wed, 30 Jan 2019 08:48:04 +0200 Subject: [PATCH] initial test config --- conf/dovecot/conf.d/90-quota.conf | 14 ++++++++++++++ setup/mail-postfix.sh | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/conf/dovecot/conf.d/90-quota.conf b/conf/dovecot/conf.d/90-quota.conf index d294c9e5..270fbaf7 100644 --- a/conf/dovecot/conf.d/90-quota.conf +++ b/conf/dovecot/conf.d/90-quota.conf @@ -68,12 +68,26 @@ plugin { plugin { quota = maildir + + quota_grace = 10% + + quota_status_success = DUNNO + quota_status_nouser = DUNNO + quota_status_overquota = "522 5.2.2 Mailbox is full" + #quota = dirsize:User quota #quota = maildir:User quota #quota = dict:User quota::proxy::quota #quota = fs:User quota } +service quota-status { + executable = quota-status -p postfix + inet_listener { + port = 12340 + } +} + # Multiple quota roots are also possible, for example this gives each user # their own 100MB quota and one shared 1GB quota within the domain: plugin { diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index 0c9bc97c..8aa65d76 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -195,7 +195,7 @@ tools/editconf.py /etc/postfix/main.cf virtual_transport=lmtp:[127.0.0.1]:10025 # "450 4.7.1 Client host rejected: Service unavailable". This is a retry code, so the mail doesn't properly bounce. #NODOC tools/editconf.py /etc/postfix/main.cf \ smtpd_sender_restrictions="reject_non_fqdn_sender,reject_unknown_sender_domain,reject_authenticated_sender_login_mismatch,reject_rhsbl_sender dbl.spamhaus.org" \ - smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,"reject_rbl_client zen.spamhaus.org",reject_unlisted_recipient,"check_policy_service inet:127.0.0.1:10023" + smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,"reject_rbl_client zen.spamhaus.org",reject_unlisted_recipient,"check_policy_service inet:127.0.0.1:10023","check_policy_service inet:127.0.0.1:12340" # Postfix connects to Postgrey on the 127.0.0.1 interface specifically. Ensure that # Postgrey listens on the same interface (and not IPv6, for instance).