[Dovecot] Warning recipient when message delivery fails due to over-quota
Ken A
ka at pacific.net
Mon Jun 24 21:21:57 EEST 2013
On 6/24/2013 1:02 PM, Ben Johnson wrote:
> I'm working to configure automated quota notifications in Dovecot and am
> wondering if it is possible to send a warning message to a user when
> message delivery fails because the user is over-quota.
>
> I already have the following directives configured:
>
> quota_warning = storage=95%% quota-warning 95 %u %d
> quota_warning2 = storage=80%% quota-warning 80 %u %d
> quota_warning3 = -storage=100%% quota-below below %u %d
>
> These seem to function as expected, but the problem I'm facing is that
> when a message is large enough to take the user's quota from, say, 84%
> to over 100%, the message is rejected (as expected), but the user is
> never warned that a message failed to be delivered because it would have
> put him over 100% usage.
>
> I suppose that I'm looking for a trigger that is tripped when delivering
> the message *would* put the user over-quota (as opposed to *does in
> fact* put the user over).
>
> The sender receives an automated rejection message already. I'm
> wondering if the recipient can be warned at the same time. (I'm not
> concerned about further increasing the user's quota consumption with the
> warning message; I would set noenforcing to 1.)
>
> Is this possible? Any help is much appreciated. Thanks in advance.
>
> -Ben
>
You can give some additional space = the max message size allowed in
your email system, like in the example:
http://wiki2.dovecot.org/Quota/Configuration#line-1-5
(change Trash to Inbox). Then the message would be accepted, and the
user would get the normal 100% notice.
Ken
--
Ken Anderson
Pacific Internet - http://www.pacific.net
More information about the dovecot
mailing list