Linux – How to add domail alias in iRedMail open source edition

aliasdomainemail-serverlinux

Looking at the vmail database of the iRedMail installation I see an alias_domain table which is currently empty.

Is it possible to add domain aliases with a MySQL query directly on the vmail.alias_domain table?

Best Answer

To use my Canadian .ca site as an alias to my .com site I would use something like.

mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias_domain (alias_domain, target_domain) values ('mysite.ca', 'mysite.com');