Upon setting MX records of your domain to mx1.hanami.run and mx2.hanami.run, any emails that were sent to your domain will be routed to our servers by mail sender agent(such as gmail, hotmail, outlook etc).
Once receiving the emails, we will check to see if the TO field match your alias, if it matches, we will forward it to the email address that you configured for forwarding.
When you use * in your alias, it will match anything. We also support multi matching, which means that if the TO matches any rules, we will forward that email to all target addresses of those rules. Consider below example, let's say you configured the forward rule as below:
*@domain.com -> email@example.com
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
If someone sends an email to firstname.lastname@example.org, that email will be forwarded to three addresses: email@example.com, firstname.lastname@example.org and email@example.com.
If someone sends an email to firstname.lastname@example.org, we will forward that email to both of email@example.com and firstname.lastname@example.org.
However, if someone sends an email to email@example.com, it will only be forwarded to firstname.lastname@example.org.
From the above example, you could see that we support fanout to many addresses, thus you can set up a simple mail group such as email@example.com but can add as many target destination addresses as you want. A valid use case is when we want to setup a dedicated email for QA team or Support team as below:
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
Noted that it's best to limit under 100 emails in a single mail alias. If you want to add like hundreds of users, then it's probably better for you to migrate to a properly mailing list setup.