Bug 182440 - [PATCH] mail/sqlgrey: fix ipv6 whitelisting
Summary: [PATCH] mail/sqlgrey: fix ipv6 whitelisting
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 13:00 UTC by Mark Felder
Modified: 2013-12-06 17:01 UTC (History)
0 users

See Also:


Attachments
file.diff (1.14 KB, patch)
2013-09-27 13:00 UTC, Mark Felder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Felder freebsd_committer freebsd_triage 2013-09-27 13:00:00 UTC
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/

Fix: Patch attached with submission follows:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-09-27 16:53:42 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-27 16:53:57 UTC
Maintainer of mail/sqlgrey,

Please note that PR ports/182440 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182440

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-27 16:53:58 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-06 16:59:44 UTC
Author: feld
Date: Fri Dec  6 16:59:37 2013
New Revision: 335776
URL: http://svnweb.freebsd.org/changeset/ports/335776

Log:
  Import patch to fix IPv6 greylisting
  
  This patch is floating in the bug system on SourceForge. Upstream
  develoment is slow/nonexistent.
  
  If you have IPv6 mail servers and run sqlgrey you may notice emails from
  places like GMail sometimes get lost or take forever to get be received.
  This is because GMail does not retry from the same server, and they have
  a large pool of IPv6 capable MTAs. For IPv4 sqlgrey handles this by
  whitelisting the entire /24, but similar logic for whitelisting a /64 in
  sqlgrey doesn't work consistently. This fixes it.
  
  PR:		ports/182440
  Approved by:	crees (mentor), maintainer timeout

Added:
  head/mail/sqlgrey/files/patch-ipv6   (contents, props changed)
Modified:
  head/mail/sqlgrey/Makefile

Modified: head/mail/sqlgrey/Makefile
==============================================================================
--- head/mail/sqlgrey/Makefile	Fri Dec  6 16:53:20 2013	(r335775)
+++ head/mail/sqlgrey/Makefile	Fri Dec  6 16:59:37 2013	(r335776)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sqlgrey
 PORTVERSION=	1.8.0
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-1.8%20%28stable%29
 

Added: head/mail/sqlgrey/files/patch-ipv6
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/sqlgrey/files/patch-ipv6	Fri Dec  6 16:59:37 2013	(r335776)
@@ -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]);
+     }
+ }
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Mark Felder freebsd_committer freebsd_triage 2013-12-06 17:01:05 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!