From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 27 12:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 26FB5424 for ; Fri, 27 Sep 2013 12:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 085C72672 for ; Fri, 27 Sep 2013 12:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8RC00Jn057662 for ; Fri, 27 Sep 2013 12:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8RC00C2057648; Fri, 27 Sep 2013 12:00:00 GMT (envelope-from gnats) Resent-Date: Fri, 27 Sep 2013 12:00:00 GMT Resent-Message-Id: <201309271200.r8RC00C2057648@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Felder Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9A0D9304 for ; Fri, 27 Sep 2013 11:59:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 875232656 for ; Fri, 27 Sep 2013 11:59:14 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8RBxEBM026901 for ; Fri, 27 Sep 2013 11:59:14 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8RBxETv026884; Fri, 27 Sep 2013 11:59:14 GMT (envelope-from nobody) Message-Id: <201309271159.r8RBxETv026884@oldred.freebsd.org> Date: Fri, 27 Sep 2013 11:59:14 GMT From: Mark Felder To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/182440: [PATCH] mail/sqlgrey: fix ipv6 whitelisting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 12:00:01 -0000 >Number: 182440 >Category: misc >Synopsis: [PATCH] mail/sqlgrey: fix ipv6 whitelisting >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 27 12:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mark Felder >Release: >Organization: >Environment: >Description: this patch fixes sqlgrey whitelisting for ipv6. Without this patch lots of mail from domains with large numbers of ipv6 MTAs such as Google/Gmail end up lost because the greylisting process starts over every time a new delivery attempt happens. This patch changes the behavior to recognize delivery attempts from MTAs within the same /64. http://sourceforge.net/p/sqlgrey/bugs/27/ >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 328001) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= sqlgrey PORTVERSION= 1.8.0 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.8%20%28stable%29 Index: files/patch-ipv6 =================================================================== --- files/patch-ipv6 (revision 0) +++ files/patch-ipv6 (working copy) @@ -0,0 +1,11 @@ +--- sqlgrey.orig 2013-09-27 06:51:40.913265753 -0500 ++++ sqlgrey 2013-09-27 06:51:25.000000000 -0500 +@@ -1037,7 +1037,7 @@ + return join(":", (split(/:/, $addr))[0..3]); + } else { + ## For Non-EUI64 or Non-Global-Unicast return the address +- return $addr; ++ return join(":", (split(/:/, $addr))[0..3]); + } + } + Property changes on: files/patch-ipv6 ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted: