1

Topic: Policyd sender throttle

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

Dear iRedMail support.
I'm trying to configure policyd (v. 1.82) to enable sender throttle, using the guide:

http://www.iredmail.org/wiki/index.php? … EL.CentOS, but the daemon on port 10032 doesn't start.

I'm confused because the above mentioned guide says to set:
ENABLE_SENDER_THROTTLE="YES"
in /etc/init.d/policyd
but there is no such variable inside.
I tried to include it at the beginning of the init script but it doesn't work.
Looking at the init script, it seems it will never start a second daemon:

start()
{
    echo -n $"Starting $prog:"
    daemon "$POLICYD -c $CONF"
    RETVAL=$?
    [ "$RETVAL" = 0 ] && touch /var/lock/subsys/policyd
    echo
}

Can you please help me to understand what's wrong?

Thanks a lot

Riccardo

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Policyd sender throttle

Did you install Policyd from iRedMail yum repo?
http://www.iredmail.org/yum/rpms/6/

3

Re: Policyd sender throttle

ZhangHuangbin wrote:

Did you install Policyd from iRedMail yum repo?
http://www.iredmail.org/yum/rpms/6/

Yes, I did:
policyd-1.82-6.el6.x86_64

Cheers
Riccardo

4

Re: Policyd sender throttle

You can copy /etc/init.d/policyd to another file, e.g. /etc/init.d/policyd_sender_throttle, then modify /etc/init.d/policyd_sender_throttle to start another instance with different config file.

riccardo.brunetti wrote:

- iRedMail version: 0.8.7

iRedMail-0.8.7 ships Cluebringer and it provides sender/recipient throttling, may i know why you prefer Policyd-1.82?

5

Re: Policyd sender throttle

ZhangHuangbin wrote:

You can copy /etc/init.d/policyd to another file, e.g. /etc/init.d/policyd_sender_throttle, then modify /etc/init.d/policyd_sender_throttle to start another instance with different config file.

Yes, this way it works.

riccardo.brunetti wrote:

- iRedMail version: 0.8.7

iRedMail-0.8.7 ships Cluebringer and it provides sender/recipient throttling, may i know why you prefer Policyd-1.82?

You are right. I plan to switch to cluebringer in the next weeks. In the meantime I just needed to implement some throttling in the running system with policyd

Thank you very much for your support.

Kind regards.
Riccardo