1 to 1 domain alias
Hello, I see that there is option to create alias like all addresses to single email address. Is it possible to create this kind of routing which will work like 1:1 domain alias?
Example:
2 accounts
- [email protected]
- [email protected] I want example.com to be an alias for domain.tld So if someone writes to [email protected] it will reach [email protected] inbox. Going further [email protected] should be delivered to [email protected].
I saw that routing setting accepts @domain.tld as Send to option, but I'm not sure if it's working that way I want.
(currently on Trial account, maybe that's why my "test email" didn't worked)
This actually sounds like one of the use case for which I wanted to create more powerful Sieve-based routing; unfortunately the UI isn't done for it yet.
If you paste this:
if envelope :matches :user "to" "*" {
set "user" "${1}";
}
if envelope :matches :domain "to" "first.org" {
redirect "${user}@second.org";
}
Into here: https://purelymail.com/manage/accountSieve And replace "first.org" and "second.org" with the actual domains, it should work.
Thanks, tried this snippet and I have received this error message:
Invalid script: Command if (1:1): Command set (2:5): Requires extension "variables"
Edit: okay, looked at it one more time, after quick reading found out what's missing. Just add
require ["variables"];
At the top of the script :)