I've Dovecot and dovecot-sieve v 2.2.27 installed on a Debian 9.6. I'm trying to set a Sieve filter which will redirect all emails from `info` (i.e. .info) TLD to another email. This is the filter:

require ["regex"];
# rule:[test]
if header :regex "from" "info$"
{
redirect "subbs@domain.com";
}

It's not being honored; all emails from .info TLD ends up in the inbox and none are redirected. Let me know what I'm doing wrong.

Thanks.