diff --git a/en_US/integrations/active.directory.md b/en_US/integrations/active.directory.md index 2e1f2018..5aad0aa4 100644 --- a/en_US/integrations/active.directory.md +++ b/en_US/integrations/active.directory.md @@ -338,23 +338,19 @@ Restart dovecot service to make it work. We don't have per-user quota limit here, you can set a hard-coded quota for all users in `/etc/dovecot/dovecot.conf`. For example: - ``` - plugin { - [... omit other settings here ...] + plugin { + [... omit other settings here ...] - # Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB). - quota_rule = *:storage=1G - } - ``` + # Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB). + quota_rule = *:storage=1G + } You can also modify the `user_attrs =` line to get per-user quota from a LDAP attribute in AD. For example, query per-user quota limit from attribute `postOfficeBox` which contain an integer number and treated as number of gigabytes: - ``` - user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G - ``` + user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G Note: This per-user quota will override the one hard-coded in dovecot.conf. diff --git a/html/active.directory.html b/html/active.directory.html index a51667ff..18725927 100644 --- a/html/active.directory.html +++ b/html/active.directory.html @@ -349,19 +349,19 @@ user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/

Attention

We don't have per-user quota limit here, you can set a hard-coded quota for all users in /etc/dovecot/dovecot.conf. For example:

-

``` -plugin { - [... omit other settings here ...]

-
# Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
-quota_rule = *:storage=1G
+
plugin {
+    [... omit other settings here ...]
+
+    # Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
+    quota_rule = *:storage=1G
+}
 
-

} -```

You can also modify the user_attrs = line to get per-user quota from a LDAP attribute in AD. For example, query per-user quota limit from attribute postOfficeBox which contain an integer number and treated as number of gigabytes:

-

user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G

+
user_attrs      = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G
+

Note: This per-user quota will override the one hard-coded in dovecot.conf.

Now use command telnet to verify AD query after restarted Dovecot service: