How To Customize The "User's Mail Box Is Full" Message

I am using CentOS 6 + VM Pro.

I have noticed that when a user’s mail box is full, the message that is bounced back is not very helpful. It basically just says “can’t create user output file” - which might be thought to indicate something wrong with the server!

I have been trying to see if there is a built-in way to change that e.g. “The user’s mail box is full”. But I can’t see how to do it.

Is there a way to to do that?

Howdy,

Yeah, that “can’t create user output file” error does indeed suck! We don’t have a good solution for it though; some details about why it’s a problem are here:

https://www.virtualmin.com/node/19561

Thanks Andreycheck.

Could this point to a solution?

http://sys4.de/en/blog/2013/04/08/postfix-dovecot-mailbox-quota/

They seem to to be able to generate this kind of thing:

Apr 5 15:03:00 mail2 postfix/smtpd[24261]: NOQUEUE: reject: RCPT from
inbound.example.com[192.0.2.1]: 552 5.2.2 firstname.lastname@example.invalid:
Recipient address rejected: Quota exceeded (mailbox for user is full);
from=r@sys4.de to=firstname.lastname@example.invalid proto=ESMTP
helo=<sending.domain.invalid>

Howdy,

Hey, that looks perfect! I hadn’t seen that before.

The unfortunate problem there is that no distro is currently shipping dovecot 2.2, which is the dovecot version that supports the quota feature.

However, as soon as some of the Virtualmin-supported distros start shipping with that Dovecot version, that’s an important enough thing that I can see Virtualmin automatically configuring it, or at least offering an option to do so.

In the meantime, the only way to get that feature would be to install a non-standard Dovecot version (which we don’t really recommend :slight_smile: and then manually configure things to use it.

-Eric

Sounds good Eric. I’ll wait for the distro folks to get dovecot 2.2 on board.