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');

Share:
5,489

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    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
    Amir Ali Akbari about 10 years
    Did not work for me, any idea why? Mails are rejected with: ` Recipient address rejected: User unknown in virtual mailbox table.`
  • jpforte-user227739
    jpforte-user227739 about 10 years
    Field active needs to set to 1 as well. INSERT INTO alias_domain (alias_domain, target_domain, active) VALUES ('mysite.ca', 'mysite.com', 1);