Mailing List Archive

[Bug 3089] New: BCC detection not working in Exam custom filtering
https://bugs.exim.org/show_bug.cgi?id=3089

Bug ID: 3089
Summary: BCC detection not working in Exam custom filtering
Product: Exim
Version: 4.96+
Hardware: x86
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Filters
Assignee: unallocated@exim.org
Reporter: suhesh@mylinuxtips.com
CC: exim-dev@lists.exim.org

Hello,

As a part of customer request, we are setup a filter to block outgoing emails
to some of the recipients from some sender. Like they have 3 groups, one group
can send email to all, second group is limited to send and receive mails
between specific domains ( like in same domain and som customer emails ) and
the third group only allowed to send and receive emails within the same domain,
no outside communication.

While we tested the mails, TO address is filtered, but BCC is not detecting. So
I created a custom filter for blocking one address to gmail.

Filter
------------------
if first_delivery
and ("$h_from:" contains "nixtech@mydomain.in" )
and ("$h_to:, $h_cc:, $h_bcc" contains "@gmail.com")
then
fail "Filter-GMAIL, Messages gmail.com s blocked !!"
endif
------------------
Test 1 : From: nixtech@mydomain.in -> TO: gmail.com => Blocked
Test 1 : From: nixtech@mydomain.in -> CC: gmail.com => Blocked
Test 1 : From: nixtech@mydomain.in -> BCC: gmail.com => Not Blocked.

If BCC is not filtering, we it should be a bug with the filter and the original
requirement is failing.

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/