1

Topic: Why does adding a mailbox add an alias entry?

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

I was looking at the database structure in preperation for writing some migration scripts to migrate my Qmail users to iRedMail and I was curious if someone could tell me why when I add a user through iRedAdmin-Pro both a mailbox and alias are added?

----

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

2

Re: Why does adding a mailbox add an alias entry?

Historical problem.

*) iRedMail was based on PostfixAdmin in its early days, so we goes this way.
*) With a record in "alias" table, we can reduce (one) SQL query to verify whether or not we have this address hosted locally. Otherwise we have to query both "alias" and "mailbox" tables.