1

Topic: How does Admin-Pro know which domains exist on the server?

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

During a migration I didn't import the vmail.deleted_mailboxes table and all previous domains that were previously deleted appeared again on iRedAdmin-Pro.  I can't find anything in that database that might have told iRedAdmin-Pro about those domains and the folders containing those domains were purged long time ago.

So where is the reference to those deleted domains?

----

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

2

Re: How does Admin-Pro know which domains exist on the server?

**bump**

3

Re: How does Admin-Pro know which domains exist on the server?

*) iRedAdmin-Pro just queries `vmail.domain` to get domains.
*) `vmail.deleted_mailboxes` doesn't impact domains, it just stores the email address and maildir path of deleted mail accounts.
*) if mail domain was deleted, no record will be left in `vmail.domain`.

Did you restore a old backup?