Typo
This commit is contained in:
parent
3f821ee34d
commit
b25d961c5e
|
@ -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
|
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:
|
quota for all users in `/etc/dovecot/dovecot.conf`. For example:
|
||||||
|
|
||||||
```
|
plugin {
|
||||||
plugin {
|
[... omit other settings here ...]
|
||||||
[... omit other settings here ...]
|
|
||||||
|
|
||||||
# Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
|
# Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
|
||||||
quota_rule = *:storage=1G
|
quota_rule = *:storage=1G
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
|
||||||
You can also modify the `user_attrs =` line to get per-user quota from a
|
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
|
LDAP attribute in AD. For example, query per-user quota limit from
|
||||||
attribute `postOfficeBox` which contain an integer number and treated as
|
attribute `postOfficeBox` which contain an integer number and treated as
|
||||||
number of gigabytes:
|
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.
|
Note: This per-user quota will override the one hard-coded in dovecot.conf.
|
||||||
|
|
||||||
|
|
|
@ -349,19 +349,19 @@ user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/
|
||||||
<p class="admonition-title">Attention</p>
|
<p class="admonition-title">Attention</p>
|
||||||
<p>We don't have per-user quota limit here, you can set a hard-coded
|
<p>We don't have per-user quota limit here, you can set a hard-coded
|
||||||
quota for all users in <code>/etc/dovecot/dovecot.conf</code>. For example:</p>
|
quota for all users in <code>/etc/dovecot/dovecot.conf</code>. For example:</p>
|
||||||
<p>```
|
<pre><code>plugin {
|
||||||
plugin {
|
[... omit other settings here ...]
|
||||||
[... omit other settings here ...]</p>
|
|
||||||
<pre><code># Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
|
# Format: integer number + M/G/T (M -> MB, G -> GB, T -> TB).
|
||||||
quota_rule = *:storage=1G
|
quota_rule = *:storage=1G
|
||||||
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>}
|
|
||||||
```</p>
|
|
||||||
<p>You can also modify the <code>user_attrs =</code> line to get per-user quota from a
|
<p>You can also modify the <code>user_attrs =</code> line to get per-user quota from a
|
||||||
LDAP attribute in AD. For example, query per-user quota limit from
|
LDAP attribute in AD. For example, query per-user quota limit from
|
||||||
attribute <code>postOfficeBox</code> which contain an integer number and treated as
|
attribute <code>postOfficeBox</code> which contain an integer number and treated as
|
||||||
number of gigabytes:</p>
|
number of gigabytes:</p>
|
||||||
<p><code>user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G</code></p>
|
<pre><code>user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/,=mail=maildir:~/Maildir/,postOfficeBox=quota_rule=*:storage=%{ldap:postOfficeBox}G
|
||||||
|
</code></pre>
|
||||||
<p>Note: This per-user quota will override the one hard-coded in dovecot.conf.</p>
|
<p>Note: This per-user quota will override the one hard-coded in dovecot.conf.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>Now use command <code>telnet</code> to verify AD query after restarted Dovecot service:</p>
|
<p>Now use command <code>telnet</code> to verify AD query after restarted Dovecot service:</p>
|
||||||
|
|
Loading…
Reference in New Issue