Re: [Exim] Quotas

Top Page
Delete this message
Reply to this message
Author: Rene Sasse
Date:  
To: exim-users
CC: Odhiambo G. Washington
Subject: Re: [Exim] Quotas
Hi,

On Don, Feb 06, 2003 at 06:23:09 +0300, Odhiambo G. Washington wrote:
>
> I am looking for a way to a way to lookup the quotas from a file, with a
> default value for any user whose quota is not set. If it can be done
> on a flatfile or cdb, dbm...


try this:

virtual_localdelivery:
    driver = appendfile
    create_directory
    directory_mode = 700
    file = /var/spool/virtual/${domain}/${local_part}
    group = mail
    headers_remove = "Bcc"
    mode = 660
    quota = ${lookup{$local_part@${domain}}lsearch*{/etc/exim/maps/quotafile}{$value}{10M}}
        # user's default-quota is 10mb
        # or the value out of the file /etc/exim/maps/quotafile
    quota_warn_message = "\
    To: $local_part@$domain\n\
    Subject: Your mailbox\n\n\
    This message is automatically created \
    by mail delivery software.\n\n\
    The size of your mailbox has exceeded \
    a warning threshold that is\n\n\
    set by the system administrator.\n\n
    quota_warn_threshold = 75%
    user = mail


[/etc/exim/maps/quotafile]
# user@domain:quotasize
foo@???:10k
bar@???:90M


--
best regards,
Rene Sasse <rene@???>                    http://www.world-email.cx/