Purelymail
AboutPricingSupportNewsDocsWebmailAccountSignup

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.

Search documentation

Routing

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 runs on any mail addressed to your domain(s); so an email sent to doesnotexist@yourdomain.com could be routed to doesexist@yourdomain.com through an account routing rule. Both account routing (first) and Sieve filters (second) could apply to doesexist@yourdomain.com. If account routing sent doesexist@yourdomain.com to differentplace@yourdomain.com, the Sieve filters for doesexist@yourdomain.com would not run.

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:

They can redirect the mail to any other email address, including ones outside of your account.

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.

  1. Mail is received with an address that your account owns. (You can own either the whole domain or just the specific address.)
  2. Hardcoded routing rules are applied for the "postmaster" address. We will always receive a copy of emails sent to that address, though you may route them to your own inboxes as well.
  3. For shared domains and custom domains with Symbolic Subaddressing enabled, the username is rewritten to ignore anything after a symbol. E.g "test_123@test.com" becomes "test@test.com".
  4. Account Routing Rules are applied
  5. Account Sieve rules are applied
  6. User Sieve rules are applied
  7. Mail is delivered.