From 11d5d19bb691a8784795bc0b8eb607bba36260a7 Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Fri, 5 Feb 2021 01:35:46 +0100 Subject: [PATCH] Add postfix quota check --- roles/postfix/templates/main.cf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/postfix/templates/main.cf.j2 b/roles/postfix/templates/main.cf.j2 index 2173961..27f243c 100644 --- a/roles/postfix/templates/main.cf.j2 +++ b/roles/postfix/templates/main.cf.j2 @@ -64,3 +64,7 @@ smtp_tls_CApath = /etc/ssl/certs/ smtpd_tls_session_cache_database=btree:/var/lib/postfix/smtpd_tls_session_cache smtp_tls_session_cache_database=btree:/var/lib/postfix/smtp_tls_session_cache +# Reject mail if user if overquota +smtpd_recipient_restrictions = + reject_unauth_destination + check_policy_service unix:private/quota-status