nondeterministic / mailfilter

Remotely filters out spam in POP-accounts via regular expressions
http://mailfilter.sf.net
GNU General Public License v2.0
2 stars 4 forks source link

Error: POP timestamp in message-ID invalid. #9

Closed ma-ca closed 1 year ago

ma-ca commented 1 year ago

Running mailfilter 0.8.9 fails with:

Dec 22 09:00:28 mailfilter: 0.8.9 querying ***email*redacted***
Dec 22 09:00:28 mailfilter: Examining 3070 message(s).
Dec 22 09:00:40 mailfilter: Error: POP timestamp in message-ID invalid.
Dec 22 09:00:40 mailfilter: Error: Parsing the header of message 190 failed.
Dec 22 09:00:40 mailfilter: Error: Scanning of mail account failed.
Dec 22 09:00:40 mailfilter: Error: Skipping account ***email*redacted***@pop.gmx.net due to earlier errors.

Running with debug level:

Dec 22 09:00:28 mailfilter: 0.8.9 querying ***email*redacted***@pop.gmx.net.
Dec 22 09:00:28 mailfilter: Debugging: Using SSL encrypted communication.
Dec 22 09:00:28 mailfilter: Debugging: SSL certificate verification successful.
Dec 22 09:00:28 mailfilter: Debugging: SSL certificate verification successful.
Dec 22 09:00:28 mailfilter: Debugging: SSL certificate verification successful.
Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK POP server ready H migmx111 1Mx06N-1oyI0v0RpL-00zIg0M

Dec 22 09:00:28 mailfilter: Debugging: Wrote: USER ***email*redacted***M

Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK password required for user "***email*redacted***"M

Dec 22 09:00:28 mailfilter: Debugging: Wrote: PASS *****
Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK mailbox "***email*redacted***" has 3070 messages (864078552 octets) H migmx111M

Dec 22 09:00:28 mailfilter: Debugging: Wrote: STATM

Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK 3070 864078552M

Dec 22 09:00:28 mailfilter: Examining 3070 message(s).
Dec 22 09:00:28 mailfilter: Debugging: Wrote: STAT

Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK 3070 864078552

Dec 22 09:00:28 mailfilter: Debugging: Wrote: LIST 1

Dec 22 09:00:28 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:28 mailfilter: Debugging: Read: +OK 1 68658

Dec 22 09:00:28 mailfilter: Debugging: Wrote: TOP 1 0
...

...
Dec 22 09:00:40 mailfilter: Debugging: Wrote: LIST 190

Dec 22 09:00:40 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:40 mailfilter: Debugging: Read: +OK 190 99539

Dec 22 09:00:40 mailfilter: Debugging: Wrote: TOP 190 0

Dec 22 09:00:40 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.
Dec 22 09:00:40 mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.

...

(more than 400 lines with mailfilter: Debugging: Warning: Received SSL_ERROR_WANT_READ.)

...

Return-Path: <transaction@notice.aliexpress.com>
Received: from out22-62.mail.alibaba.com ([115.124.22.62]) by mx-ha.gmx.net
 (mxgmx116 [212.227.17.5]) with ESMTPS (Nemesis) id 1MKaDE-1ltbKs0E0K-00KvhM
 for <***email*redacted***>; Mon, 26 Apr 2021 04:01:27 +0200
X-AliDM-RcptTo: bWFydGluLmNhZXNhckBnbXguZGU=
Feedback-ID: default:transaction@notice.aliexpress.com:trigger:13
DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed;
    d=aliexpress.com; s=s1024;
    t=1619402484; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type;
    bh=AU8weHTsOaP8CyvG6b/vqJNxTOrt5XoFqm07OIpS8zY=;
    b=S8X+iAUxcDH7+s9UOX11T9f+Grp0pPtBO73vlmCvCyE8EDmuR6bUxgFuC8yNQvzo8xp7ThKeNvV8pEsAFH275v2mGlxiYmeIKrU1jj1gzJ73tdFJKcfJUGc7PfJpJIfRy9ndWWqJqdllAz7ueeFOru0D4Mr+4RXIHnUxmJ7nh30=
X-EnvId: 152700672509
Received: from ae-buyer-usertouch-worker-s011026251164.center.na61(mailfrom:transaction@notice.aliexpress.com fp:SMTPD_----0CBepal)
          by smtp.aliyun-inc.com(127.0.0.1);
          Mon, 26 Apr 2021 10:01:24 +0800
Date: Sun, 25 Apr 2021 19:01:23 -0700 (PDT)
From: AliExpress <transaction@notice.aliexpress.com>
To: ***email*redacted***
Message-ID: 9442812**redacted***2$f815a4fac7844ce5a8eddb43668b5a03
Subject: Good news regarding order 812**redacted***29442
MIME-Version: 1.0
Content-Type: multipart/mixed;
    boundary="----=_Part_47720781_1479270345.1619402483783"
Envelope-To: <***email*redacted***>
X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3;
X-Spam-Flag: NO
X-UI-Filterresults: notjunk:1;V03:K0:aHgjmWjgJn0=:yboXG...

.

Dec 22 09:00:40 mailfilter: Error: POP timestamp in message-ID invalid.
Dec 22 09:00:40 mailfilter: Error: Parsing the header of message 190 failed.
Dec 22 09:00:40 mailfilter: Error: Scanning of mail account failed.
Dec 22 09:00:40 mailfilter: Debugging: Wrote: QUIT

Dec 22 09:00:40 mailfilter: Error: Skipping account ***email*redacted***@pop.gmx.net due to earlier errors.
ma-ca commented 1 year ago

Solved. It appears that the Message-ID did not contain <and > and caused the error.

Using the option --ignore-time-stamps solves the error.

mailfilter -i

But now I have the question, if that option is save to use.

  -i, --ignore-time-stamps   Ignore invalid Message-ID time stamps (Do not use unless you know better!)