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; }
On 22 Feb 2020, at 02:42, Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> wrote:
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)
What does you MTA think is happening? (Postfix logs)?
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
Have you turned on the trace function for sieve to see what sieve actually is doing?
-- It was amazing, this mystic business. You tell them a lie, and then when you don't need it any more you tell them another lie and tell them they're progressing along the road to wisdom. Then instead of laughing they follow you even more, hoping that at the heart of all the lies they'll find the truth. And bit by bit they accept the unacceptable.
participants (2)
-
@lbutlr
-
Laura Smith