1

Topic: how to send just mailbox quota warning to another email address

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi
The Mailbox quota warning is sent to postmaster email address. I want to be sent to another user . How can I change it?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how to send just mailbox quota warning to another email address

Check /usr/local/bin/dovecot-quota-warning.sh.

3

Re: how to send just mailbox quota warning to another email address

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::quotadict"
From: no-reply@$(hostname -f)
Subject: Mailbox Quota Warning: ${PERCENT}% full, ${USER}

Mailbox (${USER}) is now ${PERCENT}% full, please clean up some mails for
further incoming mails.
EOF
fi

how it should be changed to add this useres: test1@org.local, test2@org.local? and I have two domain , Is it possible to send warning of accounts to their domain admin ?(for e.g.  quota warning of user@org2.local to test@org2.local)

ZhangHuangbin wrote:

Check /usr/local/bin/dovecot-quota-warning.sh.

4

Re: how to send just mailbox quota warning to another email address

it's easy to achieve this with some shell scripting. smile