Mention how to add CIDR network in iRedAPD config 'MYNETWORKS'.

This commit is contained in:
Zhang Huangbin 2017-04-12 18:11:20 +08:00
parent eb771005af
commit f48798cb67
4 changed files with 12 additions and 12 deletions

View File

@ -56,11 +56,11 @@ device like printer, fax, we can also its IP address directly.
ALLOWED_FORGED_SENDERS = ['user@example.com']
```
* To bypass sender IP address, for example, `192.168.0.1`, please add setting
in `/opt/iredapd/settings.py` like below:
* To bypass sender IP address or network, for example, `192.168.0.1` and
`192.168.1.0/24', please add setting in `/opt/iredapd/settings.py` like below:
```
MYNETWORKS = ['192.168.0.1']
MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
```
Restarting iRedAPD service is required if you updated `/opt/iredapd/settings.py`.

View File

@ -54,10 +54,10 @@ not logged in</code>),因此需要在 iRedAPD 里放行将该收件人邮件
</code></pre>
<ul>
<li>放行发件人 IP 地址,例如, <code>192.168.0.1</code>,请在 <code>/opt/iredapd/settings.py</code>
加以下参数:</li>
<li>放行发件人 IP 地址或网段,例如, <code>192.168.0.1</code><code>192.168.1.0/24</code>,请在
<code>/opt/iredapd/settings.py</code>加以下参数:</li>
</ul>
<pre><code>MYNETWORKS = ['192.168.0.1']
<pre><code>MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
</code></pre>
<p>修改后需要重启 iRedAPD 服务。</p><div class="footer">

View File

@ -65,10 +65,10 @@ device like printer, fax, we can also its IP address directly.</p>
</code></pre>
<ul>
<li>To bypass sender IP address, for example, <code>192.168.0.1</code>, please add setting
in <code>/opt/iredapd/settings.py</code> like below:</li>
<li>To bypass sender IP address or network, for example, <code>192.168.0.1</code> and
<code>192.168.1.0/24', please add setting in</code>/opt/iredapd/settings.py` like below:</li>
</ul>
<pre><code>MYNETWORKS = ['192.168.0.1']
<pre><code>MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
</code></pre>
<p>Restarting iRedAPD service is required if you updated <code>/opt/iredapd/settings.py</code>.</p><div class="footer">

View File

@ -44,11 +44,11 @@ not logged in`),因此需要在 iRedAPD 里放行将该收件人邮件地址
ALLOWED_FORGED_SENDERS = ['user@example.com']
```
* 放行发件人 IP 地址,例如, `192.168.0.1`,请在 `/opt/iredapd/settings.py`
加以下参数:
* 放行发件人 IP 地址或网段,例如, `192.168.0.1``192.168.1.0/24`,请在
`/opt/iredapd/settings.py`加以下参数:
```
MYNETWORKS = ['192.168.0.1']
MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
```
修改后需要重启 iRedAPD 服务。