plugin { quota = maildir:User quota quota_rule = *:storage=5G # Ajouter 100M pour ce qui est dans la corbeille, ça permet de faire du tri sans "ranger" dans la corbeille. quota_rule2 = Trash:storage=+100M # Quota plugin can also limit the maximum accepted mail size. quota_max_mail_size = 5M quota_vsizes = yes quota_status_success = DUNNO quota_status_nouser = DUNNO quota_status_overquota = "452 4.2.2 Mailbox is full and cannot receive any more emails" } service quota-status { executable = /usr/lib/dovecot/quota-status -p postfix unix_listener /var/spool/postfix/private/quota-status { user = postfix } # Connexion avec mysql dict { quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext } # Warning plugin { quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail group = vmail mode = 0660 } }