You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2025/02/04 16:09:45 UTC

[Bug 8311] New: Thread index bad

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

            Bug ID: 8311
           Summary: Thread index bad
           Product: Spamassassin
           Version: 4.0.2
          Hardware: PC
                OS: other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: spamassassin
          Assignee: dev@spamassassin.apache.org
          Reporter: sebastien@grainesvoltz.com
  Target Milestone: Undefined

i'm using Proxmox Mail Gateway that use spamassassin database.
Since yesterday, mail incoming from Office 365 have a bad score because of
being flagged with Thread_Index_Bad.
Only concerning replying email.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Re: [Bug 8311] Thread index bad

Posted by Michael Peddemors <mi...@linuxmagic.com>.
On 2025-02-05 09:39, bugzilla-daemon@spamassassin.apache.org wrote:
> https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311
> 
> --- Comment #9 from Kent Oyer <ke...@mxguardian.net> ---
> Based on preliminary research the Thread-Index header consists of base64
> encoded binary data, where the first 8 bytes represent a timestamp, the next 14
> bytes represent some kind of unique id, and then 5 bytes are added for every
> reply. If there are no replies, the minimum data length is 22 (8+14) bytes. 22
> bytes of binary data requires 32 base64 characters. Therefore, I think the best
> we can do is make sure the Thread-Index header is valid base64, starts with an
> 'A' and is at least 32 characters long. I don't think there is an upper bound
> on the length since it depends on the number of replies. At some future point
> the first letter will become 'B' because the timestamp increases monotonically
> but I haven't figured out when that will happen yet.
> 

AS mentioned in my previous email..

Thread-Index: Y4AuYYpN2e6i/RBnUDF7tuh7mPR69w==

That's valid, and doesn't start with 'A'.



-- 
"Catch the Magic of Linux..."
------------------------------------------------------------------------
Michael Peddemors, President/CEO LinuxMagic Inc.
Visit us at http://www.linuxmagic.com @linuxmagic
A Wizard IT Company - For More Info http://www.wizard.ca
"LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd.
------------------------------------------------------------------------
604-682-0300 Beautiful British Columbia, Canada


[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

--- Comment #9 from Kent Oyer <ke...@mxguardian.net> ---
Based on preliminary research the Thread-Index header consists of base64
encoded binary data, where the first 8 bytes represent a timestamp, the next 14
bytes represent some kind of unique id, and then 5 bytes are added for every
reply. If there are no replies, the minimum data length is 22 (8+14) bytes. 22
bytes of binary data requires 32 base64 characters. Therefore, I think the best
we can do is make sure the Thread-Index header is valid base64, starts with an
'A' and is at least 32 characters long. I don't think there is an upper bound
on the length since it depends on the number of replies. At some future point
the first letter will become 'B' because the timestamp increases monotonically
but I haven't figured out when that will happen yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

--- Comment #11 from Sidney Markowitz <si...@sidney.com> ---
(In reply to Sidney Markowitz from comment #10)
> accusatory timestamp data
actual :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

Kent Oyer <ke...@mxguardian.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kent@mxguardian.net

--- Comment #1 from Kent Oyer <ke...@mxguardian.net> ---
I can confirm that I'm also seeing a sharp spike in FP's starting yesterday
(Feb-03). This seems to be a proprietary Microsoft header that I'm not sure how
to reverse engineer. Maybe we should drop the score on this until someone has
time to figure it out?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

Sebastien <se...@grainesvoltz.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastien@grainesvoltz.com

--- Comment #4 from Sebastien <se...@grainesvoltz.com> ---
a new index from this morning
Adt2TH5RmK9XKh1YRKSBUIpf3DkjpAAARjCgAABITNAAL0+OQAAACdWQAAELfQAAADocQAAASLkgAADHSqAAIne6YA==

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

Sidney Markowitz <si...@sidney.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sidney@sidney.com

--- Comment #10 from Sidney Markowitz <si...@sidney.com> ---
If this is the format it is using 
https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxomsg/9e994fbb-b839-495f-84e3-2c8c02c7dd9b
then the A (hex 01) is a reserved byte that never changes, followed by the
accusatory timestamp data

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

James Andrewartha <ja...@ccgs.wa.edu.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jandrewartha@ccgs.wa.edu.au

--- Comment #3 from James Andrewartha <ja...@ccgs.wa.edu.au> ---
Here's some examples, I've had 27 in the past few days

Thread-Index:

AdtxJKkwfaUo2cz9QgmtIN9dRHcuEAABwVkwAAhrYEAAiRsXkAAEMW+wAMXdncAAAEbBkAAE5aZLACuFNHA=

Thread-Index:

AdtxJKkwfaUo2cz9QgmtIN9dRHcuEAABwVkwAAhrYEAAiRsXkAAEMW+wAMXdncAAAEbBkAAE5aZLACuFNHAADIDIxA==

Thread-Index:

AQHbGRrA9005HhduT0mPkEKhYJRNF7J9vhKugAIkGbCAqUrF7IADBeuQgABN6iiAAANcIIADGuywgABUgeCABWdrsoAAAT+F

Thread-Index:
 AQHbO6e8fDDs1c+6p06O9XWWsl36WLLUSGYggAF8mOCAAAQNgIAAAd+AgAAAToCAAAWKwIBfVwvQ

Thread-Index:

Adtlnz8cCfM8+Kf2ST2KLWpwALfWBAAemPegAACQz4AAAGyupgCb0fkAAJi/NnAAAhivgAACj7sQArWCONA=

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

John Hardin <jh...@impsec.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhardin@impsec.org

--- Comment #2 from John Hardin <jh...@impsec.org> ---
(In reply to Kent Oyer from comment #1)
> Maybe we should drop the score on this until
> someone has time to figure it out?

It's not quite that simple.

__THREAD_INDEX_BAD is essentially !__THREAD_INDEX_GOOD, and __THREAD_INDEX_GOOD
is used in metas, so they are broken (or at least damaged) as well.

We should extend __THREAD_INDEX_GOOD to recognize the new thread index format
MSFT is using; that rule already has alternations for multiple formats so
that's existing practice.

Please provide samples of that header so we can do that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

Wesley Phillip <wk...@saiab.nrf.ac.za> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wk.phillip@saiab.nrf.ac.za

--- Comment #5 from Wesley Phillip <wk...@saiab.nrf.ac.za> ---

Initial email: 
Thread-Index: AdtuWqG1ZyOMM1a9ShG4Athz970hQQ==
Date: Fri, 24 Jan 2025 12:22:45 +0000

Second email from sender:
Thread-Index: AdtuWqG1ZyOMM1a9ShG4Athz970hQQCKqYegAAGCvqA=
Date: Mon, 27 Jan 2025 07:17:24 +0000

Third email from sender:
Thread-Index: AdtuWqG1ZyOMM1a9ShG4Athz970hQQCKqYegAAGCvqAAANQOEAAAL8bg
Date: Mon, 27 Jan 2025 07:46:04 +0000

Fourth email that was caught today in SPAM:
Thread-Index:
AdtuWqG1ZyOMM1a9ShG4Athz970hQQCKqYegAAGCvqAAANQOEAAAL8bgAAm7lzABuN2bsA==
Date: Wed, 5 Feb 2025 06:48:26 +0000

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

--- Comment #12 from Sebastien <se...@grainesvoltz.com> ---
On my side with latest pattern update, no more errors
For me problem solve

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

Giovanni Bechis <gi...@paclan.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovanni@paclan.it
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #13 from Giovanni Bechis <gi...@paclan.it> ---
No more FPs since 06 February 2025.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

jbassett@corrilan.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbassett@corrilan.com

--- Comment #7 from jbassett@corrilan.com ---
Thread Index from 3 emails suddenly going to spam:

AdtmZ+lr4v2y5YXYSDG6ASGz/W0NCQL9xbiAAADduoABIq3eAAAABOqAAAN0iYAACQFmsA==
AQHbYnx0aBQq7geL0EKMov+cD+TdvrMOUFiAgAAE2wCAAAWqAIAAA+WAgAABd4CAJ1V3AIABjW4A
AQHbcyLjYejK5PQFOU2A8c1Z2Wk2SbMyPHWAgAMXbICAABeXgIAAAmYAgAAgc4CAAAIDgIAADR9W

-- 
You are receiving this mail because:
You are the assignee for the bug.

Re: [Bug 8311] Thread index bad

Posted by Michael Peddemors <mi...@linuxmagic.com>.
On 2025-02-05 06:46, bugzilla-daemon@spamassassin.apache.org wrote:
> https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311
> 
> --- Comment #8 from Sebastien <se...@grainesvoltz.com> ---
> Adt2gbKAv45Rcrp/QqG/XtGBmgSYFAAUbMPwADlCEdAAAJNYcAAEe5EgAAJ33xAAANXaEA==
> Adt3s+hxs9zcoyQlSu6vcSh/KpmCWwAB8v21AAAnyHAAACWWQAAAdS9QAAOHxR8AAhCUkAAAU6TnAABZv+AAAJ4nvg==
> Adt3rpTAWfOrf4RvTnCFgA3TzDPjqQAAXPUgAAAWx1AABarRsAABrM9wAAAn0xAAAJhmcAABL9kQAAAseMAAAIjooAAAqbxw
> 

warning: no description set for THREAD_INDEX_BAD

For the record, also getting reports of THREAD_INDEX_BAD being triggered 
on however it might be related to a different issue, eg the very long 
references header.. ;)

Thread-Index: Y4AuYYpN2e6i/RBnUDF7tuh7mPR69w==

For those who don't have the rule handy..

header __THREAD_INDEX_GOOD  Thread-Index =~ 
m,^A[A-Za-z0-9][A-Za-z0-9+/]{27}(?:[A-Za-z0-9+/]{20})?(?:[AQgw]==|[A-Za-z0-9+/]{7}|[A-Za-z0-9+/]{13}[AEIMQUYcgkosw048]=)$

But given that there are other ways to set threads nowadays.. and you 
might have a mismatch in methods, the score does seem drastic..

In-Reply-To: <dd...@REDACTED.com>

References: <de...@REDACTED.com> 
<36...@REDACTED.com> 
<4e...@REDACTED.com> 
<37...@REDACTED> 
<fd...@REDACTED> 
<39...@REDACTED.com> 
<1d...@REDACTED.com> 
<dd...@REDACTED.com>


-- 
"Catch the Magic of Linux..."
------------------------------------------------------------------------
Michael Peddemors, President/CEO LinuxMagic Inc.
Visit us at http://www.linuxmagic.com @linuxmagic
A Wizard IT Company - For More Info http://www.wizard.ca
"LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd.
------------------------------------------------------------------------
604-682-0300 Beautiful British Columbia, Canada


[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

--- Comment #8 from Sebastien <se...@grainesvoltz.com> ---
Adt2gbKAv45Rcrp/QqG/XtGBmgSYFAAUbMPwADlCEdAAAJNYcAAEe5EgAAJ33xAAANXaEA==
Adt3s+hxs9zcoyQlSu6vcSh/KpmCWwAB8v21AAAnyHAAACWWQAAAdS9QAAOHxR8AAhCUkAAAU6TnAABZv+AAAJ4nvg==
Adt3rpTAWfOrf4RvTnCFgA3TzDPjqQAAXPUgAAAWx1AABarRsAABrM9wAAAn0xAAAJhmcAABL9kQAAAseMAAAIjooAAAqbxw

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 8311] Thread index bad

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8311

--- Comment #6 from Sebastien <se...@grainesvoltz.com> ---
AdswXCkqvaKU7bZdRjCx4KjU6409nwEg6LVAAKPsQcAKXtSx4AFoHXkwAADP1XAAYXYbMAD6l0GAAY7BbAAAAyIFsAFdID0g

-- 
You are receiving this mail because:
You are the assignee for the bug.