1

Topic: Accidentally deleted postmaster@domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.2
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

hello

i need help, i accidentally deleted postmaster@domain
how do you a create user now?

----

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

2

Re: Accidentally deleted postmaster@domain

You can create new user with script 'iRedMail-0.9.2/tools/create_mail_user_SQL.sh', then login to MySQL server as root user:

sql> USE vmail;
sql> UPDATE mailbox SET isglobaladmin=1,isadmin=1 WHERE username="your_new_email";
sql> INSERT INTO domain_admins (username, domain, active) VALUES ('your_new_email', 'ALL', 1);

With above steps, this new user is now a global domain admin.

3

Re: Accidentally deleted postmaster@domain

i solve

smile

Thank you!