More user-friendly quota bounce message

5 posts / 0 new
Last post
#1 Tue, 10/20/2009 - 00:04
arjones85

More user-friendly quota bounce message

When mail is bounced back to the sender because the receiver has exceeded their quota, the message that is given isn't very user friendly. I can't seem to get the following message to say "Quota exceeded". It just shows "can't create user output file" which doesn't tell the sender anything really.

Example:

russell-example.com@server2.example.com (expanded from russell@example.com): can't create user output file

Any idea how to change this?

Sun, 01/03/2010 - 13:15
dgillard

I've just experienced the same issue of trying to track down a mail fault and eventually traced it back to the account being over quota.

Was a issue raised in the tracker about this?

Dave

Wed, 07/21/2010 - 16:53
gsmithe

Well, it's another few months, and now I have the same question.

I've tried to search using combinations of postfix and procmail as queries on the ol' web, and I'm getting nowhere.

Is there a way to change this, and is it a postfix generated message, or procmail?

Thanks,

GS

Thu, 07/22/2010 - 08:47
makoka

My solution was:
1. Setup Dovecot LDA (http://wiki.dovecot.org/LDA)
postmaster_address = postmaster@domain ## required
mail_plugins = quota
mail_plugins_dir = /usr/local/lib/dovecot/lda
quota_full_tempfail = no

and necessary description of bounce (see in Dovecot config)
2. Feed incoming e-mail to Dovecot LDA via procmailrc (named deliver).
It looks like this:
LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0 w
| /usr/local/libexec/dovecot/deliver
:0
$DEFAULT

After that incoming mails will be processed by Dovecot deliver LDA that will use Dovecot quota settings.
How to setup quota you can see in my recent post:
http://www.virtualmin.com/node/11217#comment-48764

PS: work well with FS quita type.

Mon, 07/26/2010 - 14:54
gsmithe

Thanks,

I'll take a look at what you have provided. At first glance it appears a bit overwhelming, but I'll do some research and get it figured out. Thanks for the assistance.

GS

Topic locked