Hello! On Mon, 24 Apr 2017 at 17:00:58 (+0530), Ajay Kajla via Exim-users wrote:
> Yes, I am sending mail from [email protected] to cc: [email protected] > and bcc: [email protected] after applying following filter. But both > mails are going through. It doesn't mean there's a "Bcc" header. As other people mentioned already most probably your MUA doesn't add this header based on its purpose: _blind_ copy - so noone should see it was copied to someone else. Just save this message using system_filter (based on some other criteria, e.g. "Cc" header instead of "Bcc") and look into its headers: are you able to see "Bcc" header there? > ~~~~~~~~~~~~~~~ > if ("$h_from:" contains "[email protected]" and $h_bcc:" contains > "ajaykajla") > then > deliver "[email protected]" > endif > ~~~~~~~~~~~~~~~ > Regards, > Ajay Kajla > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > On Mon, Apr 24, 2017 at 4:42 PM, George L. Yermulnik <[email protected]> wrote: > > Hello! > > On Mon, 24 Apr 2017 at 10:23:45 (+0530), Ajay Kajla via Exim-users wrote: > > > I'm trying to setup following exim filter but it's not working, assuming > > > example.com is my domain and I want any outgoing mail from my server > > > containing some key-work in BCC should also get delivered to our > > monitoring > > > ID [email protected]. > > > #####Test Filter 20/Apr/2017 > > > if ("$h_from:" contains "example.com" and $h_bcc:" contains "ajaykajla") > > > then > > > unseen deliver "[email protected]" > > > endif > > > ###### > > > Is there any problem in above filter? > > Are you sure there's a "Bcc:" header in the target messages? > > -- > > George L. Yermulnik > > [YZ-RIPE] > > -- > > ## List details at https://lists.exim.org/mailman/listinfo/exim-users > > ## Exim details at http://www.exim.org/ > > ## Please use the Wiki with this list - http://wiki.exim.org/ > -- > -Ajay -- George L. Yermulnik [YZ-RIPE] -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
