IRedMail/FAQ/Enable.Throttling/RHEL.CentOS
From iRedMail
(Difference between revisions)
(Created page with ' * Disable throttling in /etc/policyd.conf: {{cfg|/etc/policyd.conf|<pre> SENDERTHROTTLE=0 SENDER_THROTTLE_SASL=0 SENDER_THROTTLE_HOST=0 RECIPIENTTHROTTLE=0 </pre>}} * Enable t…') |
|||
| Line 1: | Line 1: | ||
| - | |||
* Disable throttling in /etc/policyd.conf: | * Disable throttling in /etc/policyd.conf: | ||
{{cfg|/etc/policyd.conf|<pre> | {{cfg|/etc/policyd.conf|<pre> | ||
| Line 16: | Line 15: | ||
RECIPIENTTHROTTLE=1 | RECIPIENTTHROTTLE=1 | ||
| + | </pre>}} | ||
| + | |||
| + | * Edit /etc/init.d/policyd, set '''ENABLE_SENDER_THROTTLE='YES'''' to start another policyd instance for throttling: | ||
| + | {{cfg|/etc/init.d/policyd|<pre> | ||
| + | ENABLE_SENDER_THROTTLE="YES" | ||
| + | </pre>}} | ||
| + | |||
| + | * Restart policyd service: | ||
| + | {{cmd|<pre> | ||
| + | # /etc/init.d/policyd restart | ||
| + | </pre>}} | ||
| + | |||
| + | It will listen on two ports: 10031, 10032. You can verify it via command '''netstat''': | ||
| + | {{cmd|<pre> | ||
| + | # netstat -ntlp | grep -i 1003 | ||
| + | tcp 0 0 127.0.0.1:10031 0.0.0.0:* LISTEN 3454/policyd | ||
| + | tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN 3459/policyd | ||
</pre>}} | </pre>}} | ||
Revision as of 13:24, 14 September 2010
- Disable throttling in /etc/policyd.conf:
| File: /etc/policyd.conf |
SENDERTHROTTLE=0 SENDER_THROTTLE_SASL=0 SENDER_THROTTLE_HOST=0 RECIPIENTTHROTTLE=0 |
- Enable throttling in /etc/policyd_sender_throttle.conf:
| File: /etc/policyd_sender_throttle.conf |
SENDERTHROTTLE=1 SENDER_THROTTLE_SASL=1 SENDER_THROTTLE_HOST=1 RECIPIENTTHROTTLE=1 |
- Edit /etc/init.d/policyd, set ENABLE_SENDER_THROTTLE='YES' to start another policyd instance for throttling:
| File: /etc/init.d/policyd |
ENABLE_SENDER_THROTTLE="YES" |
- 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 1003 tcp 0 0 127.0.0.1:10031 0.0.0.0:* LISTEN 3454/policyd tcp 0 0 127.0.0.1:10032 0.0.0.0:* LISTEN 3459/policyd |
