Re: [exim] BCC Filter not working

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Heiko Schlittermann
Fecha:  
A: exim-users
Asunto: Re: [exim] BCC Filter not working
Hi,

Ajay Kajla via Exim-users <exim-users@???> (Mo 24 Apr 2017 13:30:58 CEST):
> Hi,
>
> Yes, I am sending mail from ajay.k@??? to cc: ajaykajla@???
> and bcc: ajaykajla@??? after applying following filter. But both
> mails are going through.
>
> ~~~~~~~~~~~~~~~
> if ("$h_from:" contains "ajay.k@???" and $h_bcc:" contains
> "ajaykajla")
> then
> deliver "alerts@???"
> endif
> ~~~~~~~~~~~~~~~


You didn't tell us, if there is an BCC: header in your message.
Depending on your MUA and how the MUA delivers the message to your Exim
instance, the BCC: header *may* be there, or not.

Some MUA send the messages via "sendmail -t", thus sendmail
(here it's Exim) needs to see all headers to extract the list of
recipients. (In this mode of operation Exim removes the BCC: header
after extracting the addresses.)

If your client passes the message via SMTP to your Exim instance, the
client tells the server the list of recpients via SMTP "RCPT TO: …",
thus here Exim doesn't need the headers of your message
(and won't even look at them). If a BCC: header is there, Exim will pass
this header happily to the recpients. It's in responsibility of the
sending MUA to remove the BCC: header in advance.

So, your filter problems condenses to what others already told you: you
need to check *if* there is a BCC: header at all. Chance are quite good,
that there is no BCC: header field.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -