Note: Our documentation pages are a work in progress! If you can't find the answers you need, please email us to let us know. We'll be happy to answer your questions.
Purelymail is extremely flexible with where you can deliver your incoming mail.
There are two main types of routing: account routing rules, and user Sieve filters. Both can accomplish the same thing. The main difference is that an account routing rule works before the target address is a specific user; so an email sent to firstname.lastname@example.org could be routed to email@example.com, and both account routing and Sieve filters would apply to firstname.lastname@example.org.
Account routing rules #
When mail is delivered to any domain you own, account routing rules can be used to redirect it. They match a specific domain and any of:
- an exact address
- any prefix of an address
- any address (a catch-all rule).
To create an account routing rule, see the routing page in the account management portal.
Sieve filters #
A user's filters trigger when a message enters their inbox. They can be used to send the mail to a specific folder, give it a flag, reject it, or even redirect it based on logic that can inspect the message itself. You can see available filter options and configure them from webmail, under filters.
Remember that you can create a "user" just for the sole purpose of routing their address to another- we don't charge per user!
Account sieve filters #
Account filters use the same Sieve language that webmail filters use internally, and apply to any mail that enters your account, like a routing rule. Currently there is no graphical editor for them, but you can edit them from the Routing rules page in the account management portal.
How do these rules combine? #
Rules apply recursively until the address they're directed to no longer changes. For example, if you have a routing rule that redirects "A@yourdomain.com" to "B@yourdomain.com", and a rule that redirects "B@yourdomain.com" to "C@yourdomain.com", then mail to "A@yourdomain.com" will be delivered to "C@yourdomain.com".
If rules form a loop, they will cut off after a number of redirects.
In short, follow the below steps, restarting at 1 every time the recipient changes.
- Mail is received with an address that your account owns. (You can own either the whole domain or just the specific address.)
- Hardcoded routing rules are applied for the "postmaster" and "abuse" addresses. We will always receive a copy of emails to these addresses, though you may route them to your own inboxes as well.
- For shared domains and custom domains with Symbolic Subaddressing enabled, the username is rewritten to ignore anything after a symbol. E.g "email@example.com" becomes "firstname.lastname@example.org".
- Account Routing Rules are applied
- Account Sieve rules are applied
- User Sieve rules are applied
- Mail is delivered.