Re: [Exim] Per User Quota

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tamas TEVESZ
Ημερομηνία:  
Προς: Dan Egli
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Per User Quota
On Wed, 24 Oct 2001, Dan Egli wrote:

> That works. But I really don't like leaving quotas in a plain text file. If
> at all possible, I'd like to move them to a db database. But I still don't
> know enough about exim to create a config file that would read a db
> database.


> > quota = ${extract{2}{:}{${lookup{${local_part}}lsearch{/etc/exim/users}}}}


this is really rtfm and half a minute worth of thinking after that.

quota = ${lookup mysql{select quota from table where field='${quote_mysql:local_part}'}{$value}10M}

and that even takes care of a default quota, for free.

--
[-]