Re: [EXIM] Preventing mail spool from filling up

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Stuart Lynne
CC: exim-users
Subject: Re: [EXIM] Preventing mail spool from filling up
On Tue, 1 Jun 1999, Stuart Lynne wrote:

> It appears that exim still only checksfor available space before accepting a
> message. This is to ensure that there is sufficent space to accept a
> message. It is only a best estimate though as we don't know how big the
> incoming message is.


You do know if the SIZE extension of SMTP is used.

> It would not be hard and it might be a good idea, to do the same check
> before attempting delivery. In general though if appendfile fails to
> correctly deliver the message it is supposed to DEFER the message. So it may
> be sufficent to simply try, fail, and then DEFER. Instead of test, DEFER.


Checking before delivery doesn't gain you much. Remember that many
different Exim processes may be delivering into the same partition at
the same time. So there may be enough space when you start writing, but
not enough by the time you get to the end. The code therefore has to
cope with the case of partition full during writing, so I don't see any
point in doing a check beforehand.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***