Re: [exim] quota check at smtp_data time

Top Page
Delete this message
Reply to this message
Author: Graeme Fowler
Date:  
To: exim-users
Subject: Re: [exim] quota check at smtp_data time
Hi

On Tue 24 Jan 2006 10:43:35 GMT , "kig@???" <kig@???> wrote:
> Hi, it can be old question, but i'd like to check quota at smtp time.
> Like it goes in router.
> So there are several questions.
> 1. Is there a way to check quota on mailbox at smtp_data time.


Yes. This is well documented, see:
http://www.exim.org/exim-html-4.60/doc/html/spec.html/ch26.html#id2631521

> Checks: is account over quota (which can be MTA-imposed) and whether it
> will be over when writing message.


On your local delivery transport:
quota = 50M # (or whatever)

To include current message add:
quota_is_inclusive = true # this is the default behaviour

> 2. Why messages which are delayed due to "MTA-imposed quota exceeded
> while writing" are not bounced? How can i configure it?


With an appropriate retry rule like this:
# Domain               Error       Retries
# ------               -----       -------
# all                  quotas      fail if mailbox not read for 6h
*                      quota_6h


See http://www.exim.org/exim-html-4.60/doc/html/spec.html/ch32.html#id2655632

> 3. When exim recieves mail it builds a tree of delivery, following
> alias , forward and filter files. When does it occur in terms of
> handling incoming message over smtp?


I don't understand that question.

Graeme