Re: [Exim] Maildirsize files: opinions sought

Góra strony
Delete this message
Reply to this message
Autor: Paul Furness
Data:  
Dla: exim-users
Temat: Re: [Exim] Maildirsize files: opinions sought
The following is based on thinking because I haven't actually
implemented this yet:


It should count everything in there because separate disk quota progs
can create a limit which exim would hit and this would generate errors
in the wrong places.

My thinking is that if exim detects that there won't be enough space for
the mail, it could cope by freezing or deferring delivery. If the
external quota program stops it half way through, I can see other
problems happening.

Here we have users' maildir sitting in their home directories, and we
have a quota limit on home directory sizes. At the moment, I don't have
exim doing quota checks at all because we just put lots of disk space in
so I have time to work out the details before I start hitting ceilings
(and in any case it's an older version of exim), but eventually I'll
want to turn on quotas in exim and they mustn't conflict with those on
the file server.


Just a few cents worth. :)

Paul.

On Thu, 2004-02-12 at 16:38, Philip Hazel wrote:
> Exim 4.30 was released with support for maildirsize files using some
> contributed code, which I didn't look at very closely, other than check
> that it seemed to work. There were a number of postings on the list
> about problems with maildirsize files.
>
> I have now got round to reading up about these beasts[*], and have
> decided to re-implement the code in my own inimitable style (the
> contributed code, mostly torn from somewhere else, has a lot of baggage
> not needed in Exim). Reading the description in
>
> http://www.inter7.com/courierimap/README.maildirquota.html
>
> raises some questions that I'd like people's opinions on.
>
> 1. It specifies that, when adding up the sizes of files to compute the
> size of a mailbox, only the contents of the "new" and "cur" directories
> should be counted, and *not* the "tmp" directory.
>
> 2. It also specifies that the contents of a maildirfolder called "Trash"
> should not be counted.
>
> Neither of these seem right to me. Surely you want to know how much disk
> is being used in the maildir, whatever the files are currently named?
>
> The existing code in Exim (when maildir_use_size_file is not set) just
> adds up the sizes of all the files. It seems to me that the same thing
> should happen when maildir_use_size_file *is* set.
>
> But maybe some of you disagree? As we don't use maildir round here, I
> don't have any actual experience to go on.
>
> Philip
>
> --
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>