This commit is contained in:
Zhang Huangbin 2015-10-06 13:21:24 +08:00
parent 28c64c9343
commit f37b0398b8
2 changed files with 33 additions and 21 deletions

View File

@ -486,9 +486,9 @@ pass_attrs = mail=user,userPassword=password,allowNets=allow_nets
Restarting Dovecot service is required.
Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1` and
network `192.168.1.0/24`:
> Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1`
> and network `192.168.1.0/24`:
>
```
dn: mail=user@domain.com,ou=Users,domainName=domain.com,o=domains,dc=xx,dc=xx
objectClass: mailUser
@ -496,8 +496,8 @@ mail: user@domain.com
allowNets: 192.168.1.10,192.168.1.0/24
...
```
To remove this restriction, just remove attribute `allowNets` for this user.
>
>To remove this restriction, just remove attribute `allowNets` for this user.
### Fixed: not backup SOGo database
@ -586,15 +586,15 @@ password_query = SELECT password, allow_nets FROM mailbox WHERE username='%u' AN
Restarting Dovecot service is required.
Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1` and
network `192.168.1.0/24`:
> Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1`
> and network `192.168.1.0/24`:
>
```
sql> USE vmail;
sql> UPDATE mailbox SET allow_nets='172.16.244.1,192.168.1.0/24' WHERE username='user@domain.com`;
```
To remove this restriction, just set `mailbox.allow_nets` to `NULL`, not empty string.
>
>To remove this restriction, just set `mailbox.allow_nets` to `NULL`, not empty string.
### Fixed: user+extension@domain.com doesn't work with per-domain catch-all
@ -705,15 +705,15 @@ password_query = SELECT password, allow_nets FROM mailbox WHERE username='%u' AN
Restarting Dovecot service is required.
Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1` and
network `192.168.1.0/24`:
> Sample usage: allow user `user@domain.com` to login from IP `172.16.244.1`
> and network `192.168.1.0/24`:
>
```
sql> \c vmail;
sql> UPDATE mailbox SET allow_nets='172.16.244.1,192.168.1.0/24' WHERE username='user@domain.com`;
```
To remove this restriction, just set `mailbox.allow_nets` to `NULL`, not empty string.
>
> To remove this restriction, just set `mailbox.allow_nets` to `NULL`, not empty string.
### Fixed: user+extension@domain.com doesn't work with per-domain catch-all

View File

@ -481,8 +481,10 @@ from specified IP/networks.</p>
</code></pre>
<p>Restarting Dovecot service is required.</p>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code> and
network <code>192.168.1.0/24</code>:</p>
<blockquote>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code>
and network <code>192.168.1.0/24</code>:</p>
</blockquote>
<pre><code>dn: mail=user@domain.com,ou=Users,domainName=domain.com,o=domains,dc=xx,dc=xx
objectClass: mailUser
mail: user@domain.com
@ -490,7 +492,9 @@ allowNets: 192.168.1.10,192.168.1.0/24
...
</code></pre>
<blockquote>
<p>To remove this restriction, just remove attribute <code>allowNets</code> for this user.</p>
</blockquote>
<h3 id="fixed-not-backup-sogo-database">Fixed: not backup SOGo database</h3>
<p>Note: this step is not applicable if you don't use SOGo groupware.</p>
<p>Open backup script <code>/var/vmail/backup/backup_mysql.sh</code>, append SOGo SQL
@ -560,13 +564,17 @@ mysql&gt; ALTER TABLE mailbox ADD COLUMN `allow_nets` TEXT DEFAULT NULL;
</code></pre>
<p>Restarting Dovecot service is required.</p>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code> and
network <code>192.168.1.0/24</code>:</p>
<blockquote>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code>
and network <code>192.168.1.0/24</code>:</p>
</blockquote>
<pre><code>sql&gt; USE vmail;
sql&gt; UPDATE mailbox SET allow_nets='172.16.244.1,192.168.1.0/24' WHERE username='user@domain.com`;
</code></pre>
<blockquote>
<p>To remove this restriction, just set <code>mailbox.allow_nets</code> to <code>NULL</code>, not empty string.</p>
</blockquote>
<h3 id="fixed-userextensiondomaincom-doesnt-work-with-per-domain-catch-all">Fixed: user+extension@domain.com doesn't work with per-domain catch-all</h3>
<p>With iRedMail-0.9.0 and earlier versions, if you have per-domain catch-all
enabled, email sent to <code>user+extension@domain.com</code> will be delivered to
@ -657,13 +665,17 @@ sql&gt; ALTER TABLE mailbox ADD COLUMN allow_nets TEXT DEFAULT NULL;
</code></pre>
<p>Restarting Dovecot service is required.</p>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code> and
network <code>192.168.1.0/24</code>:</p>
<blockquote>
<p>Sample usage: allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code>
and network <code>192.168.1.0/24</code>:</p>
</blockquote>
<pre><code>sql&gt; \c vmail;
sql&gt; UPDATE mailbox SET allow_nets='172.16.244.1,192.168.1.0/24' WHERE username='user@domain.com`;
</code></pre>
<blockquote>
<p>To remove this restriction, just set <code>mailbox.allow_nets</code> to <code>NULL</code>, not empty string.</p>
</blockquote>
<h3 id="fixed-userextensiondomaincom-doesnt-work-with-per-domain-catch-all_1">Fixed: user+extension@domain.com doesn't work with per-domain catch-all</h3>
<p>With iRedMail-0.9.0 and earlier versions, if you have per-domain catch-all
enabled, email sent to <code>user+extension@domain.com</code> will be delivered to