How to add domail alias in iRedMail open source edition?
5,489
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');
Related videos on Youtube
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on September 18, 2022Comments
-
Admin almost 2 years
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?
-
Amir Ali Akbari about 10 yearsDid not work for me, any idea why? Mails are rejected with: ` Recipient address rejected: User unknown in virtual mailbox table.`
-
jpforte-user227739 about 10 yearsField active needs to set to 1 as well. INSERT INTO alias_domain (alias_domain, target_domain, active) VALUES ('mysite.ca', 'mysite.com', 1);