Create an iRedMail Domain Admin: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 30: Line 30:


It also means that a user account within one domain can administer another domain.
It also means that a user account within one domain can administer another domain.
[[Category : iredMail]]
[[Category : iRedMail]]

Latest revision as of 09:27, 5 July 2016

To allow an account to administrator a specific or group of domains. Firstly create the user as normal. As an example we'll create a user called her@justme.com. Once the user has been created:

Open Database

Open SQL CLI into vmail database.

mysql -pMyLongandComplexSQLPassword vmail

Set user as Admin

Set the isadmin parameter for the required user.

Changing the isadmin to 0 would mean the user can no longer administer domains even though the user is still listed in the domain_admins table.

update mailbox set isadmin=1 where username='her@justme.com';

Define which domains can be administed

Set the user as a domain admin.

insert into domain_admins (username, domain, created) values('her@justme.com', 'justme.com', now());

Adding multiple entries for the same user for different domains allows the user to manage multiple domains.

insert into domain_admins (username, domain, created) values('her@justme.com', 'justme.com', now());
insert into domain_admins (username, domain, created) values('her@justme.com', 'another.com', now());

The user her@justme.com can now administer accounts in the domains justme.com and another.com.

It also means that a user account within one domain can administer another domain.