Aliases
Aliases are the entry point for email processing. Aliases determine which email addresses can be received on your domain.
An alias is a pattern that matches the first part of an email address, the part before the @
symbol. For example, in the email address, support@mydomain.com, the alias is support.
In addition to simple word aliases, Mailcast also supports pattern matching using regular expressions.
If you wanted to receive emails sent an address for each product you support, and your product codes are all 3 letters followed by a number, you could use the alias /[A-Z]{3}\d+/@mydomain.com.
This example would match emails sent to ABC123@mydomain.com, and def456@mydomain.com, but not ABCD@mydomain.com.
Aliases are case-insensitive, so SUPPORT and support are considered the same alias.
Aliases also support plus-addressing, so support+abc123@mydomain.com and support@mydomain.com would be considered the same alias. Plus-addressing can be used when processing the emails before forwarding or triggering webhooks.
Catch-all addresses
Sometimes you want to receive every email sent to your domain, no matter what the alias is. You can do this by creating an alias that matches everything. You can add a catch-all address with the alias *@mydomain.com.
Using aliases
Once you have an alias, you can configure it to do a number of things:
- Forward emails to another email address, or
- Trigger webhooks on your website
Internet offline or server down
Attempting to reconnect