Mailing List Archive

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

Suhesh K S <suhesh@mylinuxtips.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|BCC detection not working |BCC detection not working
|in Exam custom filtering |in Exim custom filtering

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
Bcc'd mails are transmitted over SMTP using a RCPT TO: command of the Bcc'd
recipient
but not with any Bcc: header in the message itself. If there were one, it
would be
leaking information to other recipients. There is no Bcc: header for the
filter to
filter on.

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Andrew Aitchison <exim@aitchison.me.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |exim@aitchison.me.uk

--- Comment #2 from Andrew Aitchison <exim@aitchison.me.uk> ---
Interesting.

I have an email in my INBOX which does have a Bcc: header, with my email
address. The To:, From, From:, Return-path and envelope-from are set to the
same address.
I use fetchmail, which does have an effect on the headers.

This suggests that there is a mail scheme which does use the Bcc: header on the
message sent to the Bcc: recipients.

However if the To: and Bcc: headers are the same, the OP's filter will still do
what s/he wishes, so this should not be a problem.

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Adam D. Barratt <adam-exim-bugs@adam-barratt.org.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |adam-exim-bugs@adam-barratt
| |.org.uk

--- Comment #3 from Adam D. Barratt <adam-exim-bugs@adam-barratt.org.uk> ---
(In reply to Andrew Aitchison from comment #2)
> Interesting.
>
> I have an email in my INBOX which does have a Bcc: header, with my email
> address. The To:, From, From:, Return-path and envelope-from are set to the
> same address.
> I use fetchmail, which does have an effect on the headers.
>
> This suggests that there is a mail scheme which does use the Bcc: header on
> the message sent to the Bcc: recipients.

It's permissible (RFC 5322 3.6.3) to include a Bcc: header on copies of mail
sent to BCC-ed recipients, either listing just their own address or all BCCed
recipients (or indeed none). It's much more common to simply for MUAs to simply
remove the header during transmission of the message to an MSA.

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Suhesh K S <suhesh@mylinuxtips.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---

--- Comment #4 from Suhesh K S <suhesh@mylinuxtips.com> ---
@Jeremy Harris
> There is no Bcc: header for the filter to filter on.

If this is the case, then we cannot block the mails having email mentioned bcc
? But we tested the same scenario in postfix and the BCC filtering works there.
Since customer is looking for a solution here itself ( in cpanel ) other than
going to a different setup.

@Andrew Aitchison

> However if the To: and Bcc: headers are the same, the OP's filter will still do what > s/he wishes, so this should not be a problem.

As per the filter, TO and CC were filtered and while we trying BCC it is not
filtering. So which means TO: and BCC: headers are not same. They were treating
as different itself.

Like @Jeremy Harris said BCC should have removed from the header from the sever
itself. So in this case, we need to add the filter before removing the header
from the mail. Anyone having the same situation and found any fix for the same
?

Since customer is looking for blocking mails even if it is TO:, CC:, or BCC:.
If the users may know about this bug, they will start using option to send
mails to the restricted users.

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

--- Comment #5 from Andrew Aitchison <exim@aitchison.me.uk> ---
Routers (and transports) have "headers_remove" and filters have "headers
remove". What happens if you remove the Bcc: header ?
(I don't know whether these are case-sensitive.)

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Jasen Betts <jasen@treshna.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |jasen@treshna.com

--- Comment #6 from Jasen Betts <jasen@treshna.com> ---
assuming you are using a system filter file, and not an end-user filter file

try this:

if first_delivery
and ("$h_from:" contains "nixtech@mydomain.in" )
and ( "$recipients" contains "@gmail.com")
then
fail "Filter-GMAIL, Messages gmail.com s blocked !!"
endif

This keeps the same bug as the original: "@google.commanche.org" is also
matched.
this can possibly be fixed using this (or I might be misunderstanding the
documentation)

and "yes" is "${if inlisti{google.com}{${domains:$recipients_list}}{yes}}"


"$recipients" is not available in user (mailbox) filters only in system
(submission) filters.

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Suhesh K S <suhesh@mylinuxtips.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED

--- Comment #7 from Suhesh K S <suhesh@mylinuxtips.com> ---
@Jasen Betts

It worked. Following code worked.

if first_delivery
and ("$h_from:" contains "nixtech@mydomain.in" )
and ( "$recipients" contains "@gmail.com")
then
fail "Filter-GMAIL, Messages gmail.com s blocked !!"
endif

--
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/
[Bug 3089] BCC detection not working in Exim custom filtering [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=3089

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID

--- Comment #8 from Jeremy Harris <jgh146exb@wizmail.org> ---
This was not a bug in Exim, so Resolved/Invalid rather than Resolved/Fixed.

--
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/