Bounce Message when Over Quota

Hi,

We just had our first incident where a user filled their quota.

Our Virtualmin Pro server was installed on Centos 5 from the install script (Postfix).

My problem is this, the NDR contained this message:

Action: failed
Status: 5.2.0
Diagnostic-Code: x-unix; can't create user output file

As I understand it, this message was generated by procmail?

What would be the best way to modify this message into something more useful? ...something more readily identifiable as a full mailbox?

Thanks in advance,

G

Status: 
Active

Comments

Howdy -- that's unfortunately not as easy as it sounds.

The message you're seeing is produced by procmail. When Postfix sees that procmail has returned an error code, Postfix generates a bounce message back to to sender, passing along the message procmail produced.

I'm not aware of a way to alter what message the sender is ultimately sent.

If we manage to develop a workaround for that, though, that'll definitely find it's way into the Virtualmin configuration since you're right in that the error message isn't entirely helpful :-)

Well, I spent quite a bit of time coming up with a workaround. You're right, it's not easy to fix, but the workaround is easy.

Basically, I just customized the bounce message template to explain that "can't create user output file" probably means the recipient is out of disk space:

cp /etc/postfix/bounce.cf.default /etc/postfix/bounce.cf
vim /etc/postfix/bounce.cf

Edit the failure-template and add just before the 'EOF' (I just replaced "The mail system"):

If the error shown next is "can't create user output file",
the recipient mailbox is probably full.

Then run:

postconf -e 'bounce_template_file=/etc/postfix/bounce.cf'
postfix reload