IRedMail/FAQ/Enable.Throttling/RHEL.CentOS
From iRedMail
(Difference between revisions)
Shake.chen (Talk | contribs) |
|||
| Line 1: | Line 1: | ||
| + | |||
| + | TO BE CONTINUED, DO NOT APPLY THEM. | ||
| + | |||
iRedMail ships Policyd-1.8.x for sender & recipient throttling, but it's disabled by default. You can enable it by follow below steps on RHEL/CentOS: | iRedMail ships Policyd-1.8.x for sender & recipient throttling, but it's disabled by default. You can enable it by follow below steps on RHEL/CentOS: | ||
| - | * | + | * Enable throttling in '''/etc/postfix-policyd.conf''': |
{{cfg|/etc/policyd.conf|<pre> | {{cfg|/etc/policyd.conf|<pre> | ||
| - | SENDERTHROTTLE= | + | SENDERTHROTTLE=1 |
SENDER_THROTTLE_SASL=0 | SENDER_THROTTLE_SASL=0 | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
SENDER_THROTTLE_HOST=1 | SENDER_THROTTLE_HOST=1 | ||
RECIPIENTTHROTTLE=1 | RECIPIENTTHROTTLE=1 | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
</pre>}} | </pre>}} | ||
| Line 31: | Line 20: | ||
It will listen on two ports: 10031, 10032. You can verify it via command '''netstat''': | It will listen on two ports: 10031, 10032. You can verify it via command '''netstat''': | ||
{{cmd|<pre> | {{cmd|<pre> | ||
| - | # netstat -ntlp | grep -i | + | # netstat -ntlp | grep -i 10031 |
| - | tcp 0 0 127.0.0.1:10031 0.0.0.0:* LISTEN 3454 | + | tcp 0 0 127.0.0.1:10031 0.0.0.0:* LISTEN 3454/policyd |
| - | + | ||
</pre>}} | </pre>}} | ||
* Enable throttling in Postfix '''/etc/postfix/main.cf''': | * Enable throttling in Postfix '''/etc/postfix/main.cf''': | ||
{{cfg|/etc/postfix/main.cf|<pre> | {{cfg|/etc/postfix/main.cf|<pre> | ||
| - | smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1: | + | smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031 |
</pre>}} | </pre>}} | ||
Revision as of 14:48, 15 September 2010
TO BE CONTINUED, DO NOT APPLY THEM.
iRedMail ships Policyd-1.8.x for sender & recipient throttling, but it's disabled by default. You can enable it by follow below steps on RHEL/CentOS:
- Enable throttling in /etc/postfix-policyd.conf:
| File: /etc/policyd.conf |
SENDERTHROTTLE=1 SENDER_THROTTLE_SASL=0 SENDER_THROTTLE_HOST=1 RECIPIENTTHROTTLE=1 |
- Restart policyd service:
| Terminal: |
# /etc/init.d/policyd restart |
It will listen on two ports: 10031, 10032. You can verify it via command netstat:
| Terminal: |
# netstat -ntlp | grep -i 10031 tcp 0 0 127.0.0.1:10031 0.0.0.0:* LISTEN 3454/policyd |
- Enable throttling in Postfix /etc/postfix/main.cf:
| File: /etc/postfix/main.cf |
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031 |
Restart postfix:
| Terminal: |
# /etc/init.d/postfix restart |
That's all. Enjoy. :)
