Create an iRedMail Domain Admin
From KlavoWiki
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 SQL CLI into vmail database.
mysql -pMyLongandComplexSQLPassword vmail
Set the isadmin parameter for the required user.
update mailbox set isadmin=1 where username='her@justme.com';
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.