From f48798cb67072865a695fed7910fe44de09646bd Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Wed, 12 Apr 2017 18:11:20 +0800 Subject: [PATCH] Mention how to add CIDR network in iRedAPD config 'MYNETWORKS'. --- .../allow.user.to.send.email.without.authentication.md | 6 +++--- ...low.user.to.send.email.without.authentication-zh_CN.html | 6 +++--- html/allow.user.to.send.email.without.authentication.html | 6 +++--- .../allow.user.to.send.email.without.authentication.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/en_US/howto/allow.user.to.send.email.without.authentication.md b/en_US/howto/allow.user.to.send.email.without.authentication.md index 14d9c2a3..0995254d 100644 --- a/en_US/howto/allow.user.to.send.email.without.authentication.md +++ b/en_US/howto/allow.user.to.send.email.without.authentication.md @@ -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`. diff --git a/html/allow.user.to.send.email.without.authentication-zh_CN.html b/html/allow.user.to.send.email.without.authentication-zh_CN.html index e5f52743..48922513 100644 --- a/html/allow.user.to.send.email.without.authentication-zh_CN.html +++ b/html/allow.user.to.send.email.without.authentication-zh_CN.html @@ -54,10 +54,10 @@ not logged in),因此需要在 iRedAPD 里放行将该收件人邮件 -
MYNETWORKS = ['192.168.0.1']
+
MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
 

修改后需要重启 iRedAPD 服务。

-
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.