From nobody Sun Dec 26 15:22:51 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C56311916272 for ; Sun, 26 Dec 2021 15:22:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JMPgb2rwCz4m4f for ; Sun, 26 Dec 2021 15:22:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3915D4B30 for ; Sun, 26 Dec 2021 15:22:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BQFMpFl041215 for ; Sun, 26 Dec 2021 15:22:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BQFMpA1041214 for ports-bugs@FreeBSD.org; Sun, 26 Dec 2021 15:22:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260700] mail/milter-greylist: handle mlmmj sender addresses correctly Date: Sun, 26 Dec 2021 15:22:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: freebsd@oldach.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640532171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9rkgPEt040zh98f2C3f6QHz2bEh3IYrId1p0M2ozqs8=; b=yo25xhkjI5QxoP3zJ1P+5WICuu775Suy6NbuH6ATZK92sQgKc75JOHwlh6NFbFvi/g2LgB ZF94hfUZod465IivaSbpb69/p8wvJR223LfiU9ZtSGX9IvaFd3S1bWTYaoTeyXbYlqsl9j nwIn1lotwnK1Tbn8h75+MW3MEzKEpYHUx+u5MUayiISXKpvWb7nQj0Ud0fTZI/ZFigiFdU qJAYCRaJsxBKPTq22rTOdSsoUqPosRP8YPTGbF+W2KJsGR5we+MOw/Hp6PVP0c1L7iWcDp T1ocRC4icjZ89bRgmXj6MwLuLhrf0AKBXbF+CGsKTKYDtvKlIZJchNupQCIkpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640532171; a=rsa-sha256; cv=none; b=n9yNptB7YBhsRHy5MJ+ZleF4q+nL7iz/T5VNPEotTfKZcrXFFWlObSaiHvrg4EEt4d/hq1 1YfkVuJ4nvj7rCvIwT1aDN1sM18H01/3YBKkW3TNPHg8o5G6vDMA4TwaqBSKmxRiZYEDKa rl1xF1LHLTUQVtePwyV7f/QnHjjM1PXLqOWj3HwR+bo1dKFENqLWu3AgKNJB1VV1QYZMqk flLHt24qniA5sHKOicINff6/XSD+Xy1e4epz5ls0E6UFkus5YpXF7MVHQaMx1cL6te24z7 jD8Evra44PB3ra/qMJYh6V2dREYBeru+n6hekhj1zGfDlxiX86WoJVUtkfwJvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260700 Bug ID: 260700 Summary: mail/milter-greylist: handle mlmmj sender addresses correctly Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: freebsd@oldach.net CC: m.tsatsenko@gmail.com CC: m.tsatsenko@gmail.com Flags: maintainer-feedback?(m.tsatsenko@gmail.com) Created attachment 230423 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230423&action= =3Dedit Remove '+' and suffix from local part Currently, milter-greylist unconditionally strips sender addresses up to and including the first '=3D' before checking against the database. This is don= e to ensure mailing list sender addresses are handled correctly. However mlmmj generates mailing list sender addresses in a different style:= the common '+' format. That yields a basically wrong mungling of sender address= es: Dec 26 06:34:34 nuc milter-greylist[56938]: 1BQ5YQ5a068146: addr 96.47.72.81 from rcpt : autowhitelisted for another 8760:00:00 Dec 26 06:34:34 nuc sm-mta[68146]: 1BQ5YQ5a068146: from=3D, size= =3D6340, class=3D0, nrcpts=3D1, msgid=3D<80df9457-886a-d5ad-23c4-98d54c4b4dcb@world.= com>, bodytype=3D8BITMIME, proto=3DESMTPS, daemon=3DMTA, relay=3Dmx2.freebsd.org [96.47.72.81] Here, is cut = down to just (which is OK in my case as I'm the owner of oldach.net). Actually that should better be stripped by removing the '+' pa= rt from the local part, yielding . The attached patch facilitates that (but keeps the '=3D' logic in place). NB: Probably a more general sender rewriting should be implemented, e.g. by using regex replacement. --=20 You are receiving this mail because: You are the assignee for the bug.=