1

Topic: restrict domain admin rights

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

Hi Zhang,

we got a lot domains on same server and we need to give admin panel access to each domain admin.

Is it possible to take out some options such as setting "enabled services", "user id", "relay" or "incoming and outgoing mail monitoring" or customize to make them unavailable at domain admin panel level?

Thanks in advance!

----

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

2

Re: restrict domain admin rights

pang wrote:

Is it possible to take out some options such as setting "enabled services", "user id", "relay" or "incoming and outgoing mail monitoring" or customize to make them unavailable at domain admin panel level?

if you don't want to make them available to domain admin, please edit file templates/default/mysql/domain/profile.html, surround related code with:

{% if session.get('domainGlobalAdmin') is sameas true %}
    [... THE CODE YOU WANT TO HIDE FOR DOMAIN ADMIN ...]
{% endif %}

Maybe we should make it configurable, for example, allow admin "xxx@yyy.zzz" to update "enabled service", but not "relay" setting.

3

Re: restrict domain admin rights

Thanks Zhang, just modified those code in domain and user profile.html as you guided and it works well. We further set relevant navlinks settings to false so that those menu tabs do not show up.