Zimbra by default, saves email for 5 days if the quota of a mailbox is exceeded. Zimbra then sends the email to the recipient if (during this time) the mailbox has space. This can be a huge problem if you have thousands of mailboxes. In this KB, we will drop an error email when the Mailbox is full without saving it in any queue.
# Run the below command to enable immediate bounce to recipient.
zmprov mcf zimbraLmtpPermanentFailureWhenOverQuota TRUE
# Above command will send immediately send below bounce message to recipient:
This is the mail system at host mail.example.com I’m sorry to have to inform you that your message could not be delivered to one or more recipients. It’s attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system<[email protected]>: host mail.example.com[127.0.1.1] said: 552 5.2.2 Over quota (in reply to end of DATA command)