Hi,
I'm really struggling with the following inbound filtering:
Let's say:• My email address is "my.email@example.com" • I've setup a filtered address "filtered.email@example.com" • I've setup a sending/reply address "send.email@example.com"
I am sending a message to a small group of people where detailed tracking is required (yes, I know there are better automated ways outside of Dovecot to do this... but let's leave that topic for another day shall we !)
My desired action is as follows : • Message "From" shows "send.email@example.com" • Message "To" is set as "filtered.email@example.com" • General recipients in Bcc
When I send a test to an *external* address, it works as expected, i.e. : • External address receives mail in its inbox • Copy of mail gets put in relevant IMAP folder for "filtered.email@example.com"
When I send a test to my own address, it does not work, the following happens instead: • Copy of mail gets put in relevant IMAP folder for "filtered.email@example.com" (this is good and as expected) • The BCC "my.email@example.com" never gets deposited in my inbox (this is not good)
My dovecot sieve (as applied to "my.email@example.com") is as follows (I have tried both with and without the "stop" as you can see from the comment:
anyof (address :is :all "to" ["send.email@example.com"], header :contains ["Cc", "Delivered-To"] ["send.email@example.com"]) { fileinto :create "XYZmail-replies"; # Ignore stop for this rule only # stop; } elsif anyof (address :is :all "to" ["filtered.email@example.com"], header :contains ["Cc", "Delivered-To"] ["filtered.email@example.com"]) { fileinto :create "XYZmail-sent"; # Ignore stop for this rule only # stop; }