Re: [Exim] rejecting messages that would overflow user quota…

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas J Mueller
Data:  
A: Arkadiusz Miskiewicz
CC: exim-users
Assumpte: Re: [Exim] rejecting messages that would overflow user quota at SMTP time

Wednesday, May 12, 2004, 9:50:12 PM, you wrote:
> Is it possible to reject messages that would overflow user quota at
> SMTP time?


Theoretically yes, if you can figure out a way to check quotas during
an ACL. But I doubt that you will find a satisfying solution, because

- - you cannot do it at RCPT time, since the message size is not known
yet (except for having received a SIZE=... value, which still is
only a suggestion and need not reflect the final size of the
message),

- - if you do it at after DATA, you would be rejecting the message for
all recipients that you accepted earlier, which is not a good thing,

- - routing takes place after the message has been queued; at reception
time you cannot possibly know which transport is going to be used
for delivery (and quota enforcement!)

What you can do is set a tight retry rule for "quota exceeded", and
decide to bounce messages early or immediately(?) after deferral,
thereby preventing them from filling up your queue.

Andy