Topic: Send warning messages when user's mailbox hitting limit
==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version: Centos 5.8 (Final)
- Related log if you're reporting an issue:
====
Dovecot version 1.2.17
Hi all
My dovecot.conf config :
plugin {
# Quota warning.
#
# You can find sample script from Dovecot wiki:
# http://wiki.dovecot.org/Quota/1.1#head- … b45bec1734
#
# If user suddenly receives a huge mail and the quota jumps from
# 85% to 95%, only the 95% script is executed.
#
quota = maildir:User quota
quota_full_tempfail = yes
# quota_warning = storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
quota_warning2 = storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
# quota_warning3 = storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
}
and my dovecot-quota-warning.sh script :
# Send a copy to postmaster@ if mailbox is greater than or equal to 95% full.
if [ ${PERCENT} -ge 95 ]; then
DOMAIN="$(echo ${USER} | awk -F'@' '{print $2}')"
cat << EOF | /usr/libexec/dovecot/deliver -d postmaster@${DOMAIN} -o "plugin/quota=dict:User quota::noenforcing:proxy::quota"
From: no-reply@mail.tvbh.hanwhalife.com.vn
BCC: duydpp@mydomain
Subject: Mailbox Quota Warning: ${PERCENT}% full, ${USER}
Your mailbox is now ${PERCENT}% full, please clean up some mails for
further incoming mails.
EOF
fi
I changed the threshold to the user's mailbox limit exceeds the threshold , but I didn't see any warning mail . Please check the wrong place for me . Thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.