Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 11:59:14 GMT
From:      Mark Felder <feld@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/182440: [PATCH] mail/sqlgrey: fix ipv6 whitelisting
Message-ID:  <201309271159.r8RBxETv026884@oldred.freebsd.org>
Resent-Message-ID: <201309271200.r8RC00C2057648@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309271159.r8RBxETv026884>