Create an iRedMail Domain Admin
From KlavoWiki
Jump to navigationJump to search
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 [email protected]. 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='[email protected]';
Define which domains can be administed
Set the user as a domain admin.
insert into domain_admins (username, domain, created) values('[email protected]', '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('[email protected]', 'justme.com', now());
insert into domain_admins (username, domain, created) values('[email protected]', 'another.com', now());
The user [email protected] 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.