Dear All,
I am managing an email infrastructure running with the below. Rocky Linux 8.7 (Green Obsidian) 4.18.0-425.3.1.el8.x86_64 postfix-3.5.8-4.el8.x86_64 dovecot-2.3.16-3.el8.x86_64 dovecot-pigeonhole-2.3.16-3.el8.x86_64 In reality there are more packages installed and configured. But I limited my enumeration above to what I think is relevant. I will be happy to provide more details if needed and/or requested.
Here is my problem, or at least on what I need help/guidance/assistance. I have a virtual alias that forward emails to support@example.com to my inbox tshimanga.minkoka@example.com. That works fine as I can see those emails in my INBOX. And I want those emails to be moved in INBOX/support with a local sieve rule. For that I have the below that works. # rule:[support] if allof (header :is "to" "support@example.com") { fileinto :create "INBOX/support"; }
The problem is that the above sieve rule seems not enough to catch email where support@example.com is not the "To" fields, as with cases of "Cc:" or "Bcc:".
In the log of postfix, I can see lines with "... postfix/lmtp ... orig_to=<support@example.com> ...". The problem I am facing is that "orig_to" is not part of the headers postfix/lmtp (in reality dovecot/lmtp process) can see in order to apply on it a sieve rule.
Any suggestions on how I can also sieve filter those emails ?
Regards,
Tshimanga