I hope this message finds you well. I am currently running a Mailcow email server and have been encountering bounce messages when users’ mailboxes exceed their quotas. The default bounce message, however, is quite technical and not very user-friendly. Like this:
This is the mail system at host mail.wxgreenstone.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
<username@domain.com>: host dovecot[IP_ADDRESS] said: 552
5.2.2 <username@domain.com> Quota exceeded (mailbox for user is full)
(in reply to end of DATA command)
<username@domain.com>: host dovecot[IP_ADDRESS] said: 552
5.2.2 <username@domain.com> Quota exceeded (mailbox for user is
full) (in reply to end of DATA command)
I would like to customize the content of these bounce messages to provide a more friendly and informative explanation to our users. Specifically, I would like to change the part of the message that starts with:
<username@domain.com>: host dovecot[IP_ADDRESS] said: 552 5.2.2 <username@domain.com> Quota exceeded (mailbox for user is full) (in reply to end of DATA command)
I have already modified the upper part of the bounce message through Postfix’s bounce.cf configuration, but I am unable to change the lower part that is generated by Dovecot.
Could anyone please provide guidance or point me to the relevant Dovecot configuration file where I can customize this quota exceeded message? I would greatly appreciate any help or suggestions on how to achieve this.
Thank you in advance for your time and assistance.