From 05cabeeaecdc62770b1a69e4e1e669d5ccec3bbd Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Wed, 18 Dec 2019 17:06:35 +0800
Subject: [PATCH] mention how to enable srs in iRedAPD-3.3.
---
en_US/howto/srs.md | 23 +++++++++++++++++++++++
html/srs.html | 22 ++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/en_US/howto/srs.md b/en_US/howto/srs.md
index bf09aaca..7778cba3 100644
--- a/en_US/howto/srs.md
+++ b/en_US/howto/srs.md
@@ -28,6 +28,29 @@ ls -dl /opt/iredapd
To upgrade iRedAPD, please follow this tutorial:
[Upgrade iRedAPD](./upgrade.iredapd.html).
+## Enable SRS
+
+SRS is not enabled by default since iRedAPD-3.3, you need to generate a secret string and restart iredapd service to enable it.
+
+* Generate a secret string:
+
+```
+$ echo $RANDOM$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM | md5sum
+9d3e3fbb52ea136033fc2c40a5340f86 -
+```
+
+* Update parameter `srs_secrets` in `/opt/iredapd/settings.py`:
+
+```
+srs_secrets = ["9d3e3fbb52ea136033fc2c40a5340f86"]
+```
+
+* Restart iRedAPD service:
+
+```
+service iredapd restart
+```
+
iRedAPD will listen to 3 network ports (all on `127.0.0.1`) by default:
* `7777`: for general smtp access policy, including greylisting, throttling,
diff --git a/html/srs.html b/html/srs.html
index 1478d0e1..75da4efc 100644
--- a/html/srs.html
+++ b/html/srs.html
@@ -21,6 +21,7 @@
Enable SRS (Sender Rewriting Scheme) support
To upgrade iRedAPD, please follow this tutorial:
Upgrade iRedAPD.
+Enable SRS
+SRS is not enabled by default since iRedAPD-3.3, you need to generate a secret string and restart iredapd service to enable it.
+
+- Generate a secret string:
+
+$ echo $RANDOM$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM | md5sum
+9d3e3fbb52ea136033fc2c40a5340f86 -
+
+
+
+- Update parameter
srs_secrets
in /opt/iredapd/settings.py
:
+
+srs_secrets = ["9d3e3fbb52ea136033fc2c40a5340f86"]
+
+
+
+- Restart iRedAPD service:
+
+service iredapd restart
+
+
iRedAPD will listen to 3 network ports (all on 127.0.0.1
) by default:
7777
: for general smtp access policy, including greylisting, throttling,