summaryrefslogtreecommitdiff
path: root/mail/sqlgrey/files/patch-ipv6
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2013-12-06 16:59:37 +0000
committerMark Felder <feld@FreeBSD.org>2013-12-06 16:59:37 +0000
commite9316e97ba814eb8f785381e9fe3f546189808f4 (patch)
tree378bd05b5f0b0a82bce3a6ab155ee9c98af0932e /mail/sqlgrey/files/patch-ipv6
parentUpdate to 1.3.1 (diff)
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
Notes
Notes: svn path=/head/; revision=335776
Diffstat (limited to 'mail/sqlgrey/files/patch-ipv6')
-rw-r--r--mail/sqlgrey/files/patch-ipv611
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/sqlgrey/files/patch-ipv6 b/mail/sqlgrey/files/patch-ipv6
new file mode 100644
index 000000000000..8be3f957e0a2
--- /dev/null
+++ b/mail/sqlgrey/files/patch-ipv6
@@ -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]);
+ }
+ }
+