Re: [exim] BCC Filter not working

Pàgina inicial
Delete this message
Reply to this message
Autor: George L. Yermulnik
Data:  
A: exim-users
Assumpte: Re: [exim] BCC Filter not working
Hello!

On Mon, 24 Apr 2017 at 17:00:58 (+0530), Ajay Kajla via Exim-users wrote:

> Yes, I am sending mail from ajay.k@??? to cc: ajaykajla@???
> and bcc: ajaykajla@??? 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 "ajay.k@???" and $h_bcc:" contains
> "ajaykajla")
> then
> deliver "alerts@???"
> 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 <yz@???> 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 alerts@???.


> > > #####Test Filter 20/Apr/2017
> > > if ("$h_from:" contains "example.com" and $h_bcc:" contains "ajaykajla")
> > > then
> > > unseen deliver "alerts@???"
> > > 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]