I have the same use case / problem:
https://community.mailcow.email/d/2668-aliases-and-recipient-delimiter
But until now no answer.
You can change the global postfilter for sieve:
From:
if allof (
envelope :detail :matches "to" "*",
header :contains "X-Moo-Tag" "YES"
) {
set :lower "tag" "${1}";
if mailboxexists "INBOX/${1}" {
fileinto "INBOX/${1}";
} else {
fileinto :create "INBOX/${tag}";
}
}
To:
if allof (
envelope :detail :matches "to" "*",
header :contains "X-Moo-Tag" "YES"
) {
set :lower "tag" "${1}";
if mailboxexists "INBOX/${1}" {
fileinto "INBOX/${1}";
} else {
fileinto :create "INBOX/${tag}";
}
} else {
if envelope :detail :matches "to" "*" {
fileinto :create "INBOX/${1}";
}
}