Re: [Exim] Per user quota?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: chris
CC: exim-users
Sujet: Re: [Exim] Per user quota?
On Fri, 23 Jun 2000 chris@??? wrote:

>     I'm currently using exim's quota option to limit the size of user's
> mailboxes. (I have read the caveats in the doc that the OS is the better
> place for handling this, but in the past this has caused some other
> problems.) The exim docs say that the quota option type is a string,
> which can be expanded. That being the case, can I set up certain users
> with different quotas by adding a lookup as follows:


Yes, you can, but

>
> in configuation:
>
> quota = file; /usr/local/exim/quotafile


No, the syntax isn't like that. Use something like

quota = ${lookup{$local_part}lsearch*{/usr/local/exim/quotafile}{$value}{4M}}

> If this works, do I then need to provide the same lookup to the
> quota_warn_threshhold option?


If you want a different threshold for each user, yes. But you can set

quota_warn_threshole = 85%

for example.

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