Hi, Ajay Kajla via Exim-users <[email protected]> (Mo 24 Apr 2017 13:30:58 CEST): > Hi, > > 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. > > ~~~~~~~~~~~~~~~ > if ("$h_from:" contains "[email protected]" and $h_bcc:" contains > "ajaykajla") > then > deliver "[email protected]" > 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 ------------ -
signature.asc
Description: PGP signature
-- ## 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/
