1

Topic: Admin rights

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version:
- iRedMail version and backend (LDAP/MySQL):
- Any related log? Log is helpful for troubleshooting.
====
Centos 5.6 iRedmail 7.2 and iRedMailProLdap 1.6.3

Hi Zhang,

We have created a admin account , but we are not able to find the throttling features.

How to get the throttling features for other admin accounts like global admin in Panel.

Thanks,
Regards,
Mohan

2

Re: Admin rights

Sorry, what do you mean "throttling features" for an admin account?

3

Re: Admin rights

Hi Zhang,

Sender throttling , recipeint throttling and maximum outgling mail per hour or per day.

maximum size of single outgoing mail options.


WE are not able to see the option of throttling in the menu

Thanks,

Regards,

Mohan

4

Re: Admin rights

Do you have Policyd integration enabled in iRedAdmin-Pro config file 'settings.ini'? For example:

[policyd]
enabled = True

host = 127.0.0.1
port = 3306
db = policyd
user = policyd
passwd = password

5

Re: Admin rights

Hi Zhang,

We are able to view the throttling option if we login as global admin. But if we login as a domain admins we have no option of throttling settings.

I have pasted the policyd settings which is in settings.ini file below for your reference.
[policyd]

# Enable policyd integration: True, False.
enabled = True
host = 127.0.0.1
port = 3306
db = policyd
user = policyd
passwd = ************************

Thanks,

Regards,
Mohan

6

Re: Admin rights

mohan wrote:

We are able to view the throttling option if we login as global admin. But if we login as a domain admins we have no option of throttling settings.

Works as designed. iRedAdmin-Pro doesn't allow normal domain admin to manage throttling.

Do you want to delegate normal domain admin to manage throttling?

7

Re: Admin rights

HI Zhang,

Yes ,We need to delegate nomal domain admin to manage throttling. Kindly advice how it can be achieved.

Thanks,

Regards,
Mohan

8

Re: Admin rights

Do you want to allow normal admin to manage both per-domain and per-user throttling?

9

Re: Admin rights

Yes, We need the normal admin to manage both per-domain and per-user throttling features.

Thanks,

Regards,
Mohan

10

Re: Admin rights

Please try attached patch (for iRedAdmin-Pro-LDAP-1.6.3) to allow normal admin to manage both per-domain and per-user throttling features.

IMPORTANT: Please let me know whether it works for you or not.

Steps to apply it:

*) Download attached patch, upload/copy it to your server which has iRedAdmin-Pro-LDAP-1.6.3 running. Assume it's /root/throttling.patch.

*) Backup files which will be patched later.

# cd /var/www/iRedAdmin-Pro-LDAP-1.6.3/
# cp libs/ldaplib/domain.py libs/ldaplib/domain.py.bak
# cp templates/default/ldap/domain/profile.html templates/default/ldap/domain/profile.html.bak
# cp templates/default/ldap/user/profile.html templates/default/ldap/user/profile.html.bak

*) Verify this patch with command 'patch --dry-run':

# cd /var/www/iRedAdmin-Pro-LDAP-1.6.3/
# patch --dry-run -p0 < /root/throttling.patch
patching file libs/ldaplib/domain.py
patching file templates/default/ldap/domain/profile.html
patching file templates/default/ldap/user/profile.html

*) If you got the SAME output, it's now safe to apply it (without '--dry-run'):

# patch -p0 < /root/throttling.patch

Restarting Apache server and re-logging in to iRedAdmin-Pro are required.

Post's attachments

throttling.patch 5.39 kb, 4 downloads since 2012-02-11 

You don't have the permssions to download the attachments of this post.

11

Re: Admin rights

Hi Zhang,

The patch is working fine, we are able to set throttling for specific domain with domain admin account.

12

Re: Admin rights

Thanks for your feedback. smile