Bypass quota check

Gabriele Nencioni gabriele.nencioni at register.it
Mon Sep 5 13:21:06 UTC 2022


Hi all,
I have the following quota configuration:
lmtp_rcpt_check_quota = no
mail_plugins = notify mail_log quota
  quota = dict:User quota::file:%h/dovecot-quota
  quota_exceeded_message = Quota exceeded
  quota_rule2 = Trash:storage=+100M
  quota_warning = storage=100%% quota-warning -q 100 -n %n -d %d -e
OverQuota
  quota_warning2 = storage=80%% quota-warning -q 80 -n %n -d %d -e FillQuota
  quota_warning3 = -storage=99%% quota-warning -q 99 -n %n -d %d -e InQuota
quota_full_tempfail = yes
service quota-warning {
  executable = script /usr/local/dovecot/quotamanager.sh
  unix_listener quota-warning {
  mail_plugins = notify mail_log quota imap_quota imap_sieve
  mail_plugins = notify mail_log quota sieve


and the quota_rule (per-user) is retrieved by a specific SQL query in my
userdb.


I'm wondering if there is a way to send an email to an account even if
it's in overquota?
In other words: is there a way to bypass (or skip) the quota check,
maybe setting a sort of ACL, for example if an email comes from a
specific ip address?


Thanks in advance
Regards,
--
Gabriele Nencioni




More information about the dovecot mailing list