purelymail-issues icon indicating copy to clipboard operation
purelymail-issues copied to clipboard

1 to 1 domain alias

Open Leny1337 opened this issue 3 years ago • 2 comments

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

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)

Leny1337 avatar Aug 06 '22 19:08 Leny1337

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.

ScottPeterJohnson avatar Aug 08 '22 07:08 ScottPeterJohnson

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 :)

Leny1337 avatar Aug 13 '22 10:08 Leny1337