## ## Quota configuration. ## # Note that you also have to enable quota plugin in mail_plugins setting. # ## ## Quota limits ## # Quota limits are set using "quota_rule" parameters. To get per-user quota # limits, you can set/override them by returning "quota_rule" extra field # from userdb. It's also possible to give mailbox-specific limits, for example # to give additional 100 MB when saving to Trash: plugin { #quota_rule = *:storage=1G #quota_rule2 = Trash:storage=+100M # LDA/LMTP allows saving the last mail to bring user from under quota to # over quota, if the quota doesn't grow too high. Default is to allow as # long as quota will stay under 10% above the limit. Also allowed e.g. 10M. #quota_grace = 10%% # Django : 2014-08-06 # default: unset # jeder User bekommt im 1GB Mailstorage zugewiesen quota_rule = *:storage=100K # jeder User kann 10k = 10.240 Nachrichten in der INBOX liegen haben quota_rule2 = INBOX:messages=+10K # jeder User darf im Unterverzeichnis Trash zusätzlich 125 MB haben quota_rule3 = INBOX/Trash:storage=+125M # der Sent-Ordner wird bei der Bewertung ausgenommen quota_rule4 = INBOX/Sent:ignore # das Verzeichnis Order darf 25% overquota liegen quota_rule5 = INBOX/Archiv:storage=+25%% # # jeder user darf die Quota-Limitierung einmalig um 10% überschreiten quota_grace = 10%% } ## ## Quota warnings ## # You can execute a given command when user exceeds a specified quota limit. # Each quota root has separate limits. Only the command for the first # exceeded limit is excecuted, so put the highest limit first. # The commands are executed via script service by connecting to the named # UNIX socket (quota-warning below). # Note that % needs to be escaped as %%, otherwise "% " expands to empty. plugin { #quota_warning = storage=95%% quota-warning 95 %u #quota_warning2 = storage=80%% quota-warning 80 %u # Django : 2014-08-06 # default: unset # Quotawarnings aktiviert quota_warning = storage=100%% quota-warning 100 %u quota_warning2 = storage=95%% quota-warning 95 %u quota_warning3 = storage=80%% quota-warning 80 %u } # Example quota-warning service. The unix listener's permissions should be # set in a way that mail processes can connect to it. Below example assumes # that mail processes run as vmail user. If you use mode=0666, all system users # can generate quota warnings to anyone. # Django : 2014-08-06 # default: unset service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = vmail unix_listener quota-warning { user = vmail } } # Django : 2014-08-07 # default: quota_exceeded_message = # Individuelle Over-Quota-Nachricht mit link zum Wiki mit weiteren Informationen, die # der Client während der IMAP-Sitzung bei Überschreitung der gesetzten Schwellen erhält. plugin { quota_exceeded_message = Quota überschritten, weitere Infos finden Sie hier: http://wiki.mailserver.guru/doku.php/centos:mail_c7:dovecot_8 } ## ## Quota backends ## # Multiple backends are supported: # dirsize: Find and sum all the files found from mail directory. # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O. # dict: Keep quota stored in dictionary (eg. SQL) # maildir: Maildir++ quota # fs: Read-only support for filesystem quota plugin { #quota = dirsize:User quota #quota = maildir:User quota #quota = dict:User quota::proxy::quota #quota = fs:User quota # Django : 2014-08-06 # default: unset # Quota-Backend Maildir++ aktiviert # ignoreunlimited : Für Benutzer ohne einem Quota-Limit wird keine Quota-Berechnung durchgeführt # noenforcing : Es wird zwar eine Quota-Berechnung durchgeführt und protokolliert, bei einer # Überschreitung des Quota-Schwelle aber keine Sperrung vorgenommen. # ns= : Quota-Berechnung und -Protokollierung nur für der Namespace "namespace" # vornehmen quota = maildir:User quota:ignoreunlimited:noenforcing } # Multiple quota roots are also possible, for example this gives each user # their own 100MB quota and one shared 1GB quota within the domain: plugin { #quota = dict:user::proxy::quota #quota2 = dict:domain:%d:proxy::quota_domain #quota_rule = *:storage=102400 #quota2_rule = *:storage=1048576 }