Skip to content

ignore_hops cannot be set to a constant, when emails sometimes first run over a local mailing list manager #13

@dilyanpalauzov

Description

@dilyanpalauzov

I have on the same system RoundCube and Mailing list manager. When an email for me enters the system, the top-second Received: header contains information about how the email entered the system. When the email is first sent from outside to the mailing list manager and then to me, the top-second Received: header contains information about how the mailing list manager transmitted the email to the LDA. Example:

Received: from mail.aegee.org ([unix socket])
         by mail.aegee.org (Cyrus 3.4.4) with LMTPA;
         Mon, 19 Dec 2022 08:44:21 +0000
Received: from mail (localhost [127.0.0.1])
        by mail.aegee.org (8.17.1/8.17.1) with ESMTP id 2BJ8iFIV2112641;
        Mon, 19 Dec 2022 08:44:19 GMT
Received: by LISTS.AEGEE.ORG (LISTSERV-TCP/IP release 17.0) with spool id
          16690518 for [email protected]; Mon, 19 Dec 2022 08:44:15
          +0000
Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com
          [209.85.214.170]) by mail.aegee.org (8.17.1/8.17.1) with ESMTPS id
          2BEIoBw93590222 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384
          bits=256 verify=OK) for <[email protected]>; Wed, 14 Dec
          2022 18:50:12 GMT
Received: by mail-pl1-f170.google.com with SMTP id x2so2978273plb.13 for
 <[email protected]>; Wed, 14 Dec 2022 10:50:12 -0800 (PST)

Relevant in this case is the fourth header from top, since it contains information whether the email entered the system in a secure manner (TLS).

Provided that Received headers have tho form from X (Y [1.2.3.4]) by Z, where X and Y are likely the EHLO-greeting / invers PTR IP-lookup, tls_icon shall detect the header that was first inserted, when the email entered the system and look in it for STARTTLS-signs.

Instead of the property $config['tls_icon_ignore_hops'] = …; there shall be another property with known hosts as strings for the system and the first header (the one closest to the end of the email), which is to the current system, but not from the current system, shall be checked for STARTTLS-information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions