1

Topic: Domain Alias to forward email from domain A to domain B

Can we setup a domain alias in iredmail or iredadmin like

domainA.com -> domainB.com

If email to user1@domainA.com, it will forward to user2@domainB.com.
If email to user2@domainB.com, if the user2@domainB.com is not found, it will bounce.

Please advice.  Thanks.

2

Re: Domain Alias to forward email from domain A to domain B

With iRedAdmin-Pro, domain alias "domainA.com -> domainB.com" will add user alias to all users under domainB.com, so:
user2@domainB.com will have a user alias: user2@domainA.com, NOT 'user1@domainA.com' by default.

You have to add "user1@domainA.com" in user alias page manually. like below:
http://screenshots.iredmail.googlecode.com/hg/iredadmin/user_profile_aliases.png

3

Re: Domain Alias to forward email from domain A to domain B

Is that mean need to create one by one and cannot act like a backup domain and forward all email from domainA.com to domainB.com?

4

Re: Domain Alias to forward email from domain A to domain B

No.

Just add an alias domain name, and that's it.
As i mentioned above, domain alias "domainA.com -> domainB.com" will add user alias to all users under domainB.com automatically, so:
user2@domainB.com will have a user alias: user2@domainA.com.

All users under domain domainB.com will have another email address, with same username and '@domainA.com'.
user01@B.com => user01@A.com
user02@B.com => user02@A.com

But you says you want different username with alias domain (a typo error), user02@B.com => user01@A.com.
user02@B.com will have another address "user02@A.com", so you have to add "user01@A.com" manually.

5

Re: Domain Alias to forward email from domain A to domain B

How can I make it then? 

As we need to migrate a domain A.com to B.com.  A.com is currently hosting in other location.  B.com is new domain and we want to create all A.com's account.  If A.com can handle all accounts and forward to B.com, then we don't need to create alias one by one.

Please advice.  Thanks.

6

Re: Domain Alias to forward email from domain A to domain B

That's easy.

Steps with iRedAdmin-Pro:

- Create domain B.com.
- Create all accounts with same username as A.com. For example, if you have "user01@A.com", then create "user01@B.com" with iRedAdmin-Pro.
- In domain list page, click the gear icon at the right side of domain name "B.com" to edit profile.
- Switch to "Aliases" tab in domain profile page. Here's  screenshot.
- Add "A.com" and click "Save changes".

That's all.

7

Re: Domain Alias to forward email from domain A to domain B

==== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

Hi,
How do we add domain alias if we're not using iRedAdmin-Pro?

Thanks,
maze

8

Re: Domain Alias to forward email from domain A to domain B

maze wrote:

How do we add domain alias if we're not using iRedAdmin-Pro?

For MySQL backend, add it in vmail.alias_domain.
For OpenLDAP backend, add domain name in attribute "domainAliasName" of domain object.