2 ## Quota configuration.
5 # Note that you also have to enable quota plugin in mail_plugins setting.
12 # Quota limits are set using "quota_rule" parameters. To get per-user quota
13 # limits, you can set/override them by returning "quota_rule" extra field
14 # from userdb. It's also possible to give mailbox-specific limits, for example
15 # to give additional 100 MB when saving to Trash:
18 #quota_rule = *:storage=1G
19 #quota_rule2 = Trash:storage=+100M
21 # LDA/LMTP allows saving the last mail to bring user from under quota to
22 # over quota, if the quota doesn't grow too high. Default is to allow as
23 # long as quota will stay under 10% above the limit. Also allowed e.g. 10M.
26 # Quota plugin can also limit the maximum accepted mail size.
27 #quota_max_mail_size = 100M
34 # You can execute a given command when user exceeds a specified quota limit.
35 # Each quota root has separate limits. Only the command for the first
36 # exceeded limit is excecuted, so put the highest limit first.
37 # The commands are executed via script service by connecting to the named
38 # UNIX socket (quota-warning below).
39 # Note that % needs to be escaped as %%, otherwise "% " expands to empty.
42 #quota_warning = storage=95%% quota-warning 95 %u
43 #quota_warning2 = storage=80%% quota-warning 80 %u
46 # Example quota-warning service. The unix listener's permissions should be
47 # set in a way that mail processes can connect to it. Below example assumes
48 # that mail processes run as vmail user. If you use mode=0666, all system users
49 # can generate quota warnings to anyone.
50 #service quota-warning {
51 # executable = script /usr/local/bin/quota-warning.sh
53 # unix_listener quota-warning {
62 # Multiple backends are supported:
63 # dirsize: Find and sum all the files found from mail directory.
64 # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
65 # dict: Keep quota stored in dictionary (eg. SQL)
66 # maildir: Maildir++ quota
67 # fs: Read-only support for filesystem quota
70 #quota = dirsize:User quota
71 #quota = maildir:User quota
72 #quota = dict:User quota::proxy::quota
73 #quota = fs:User quota
76 # Multiple quota roots are also possible, for example this gives each user
77 # their own 100MB quota and one shared 1GB quota within the domain:
79 #quota = dict:user::proxy::quota
80 #quota2 = dict:domain:%d:proxy::quota_domain
81 #quota_rule = *:storage=102400
82 #quota2_rule = *:storage=1048576