From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 24 19:00:18 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EB4A1065693 for ; Fri, 24 Dec 2010 19:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 782B58FC28 for ; Fri, 24 Dec 2010 19:00:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBOJ0H5W059279 for ; Fri, 24 Dec 2010 19:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBOJ0HxB059278; Fri, 24 Dec 2010 19:00:17 GMT (envelope-from gnats) Resent-Date: Fri, 24 Dec 2010 19:00:17 GMT Resent-Message-Id: <201012241900.oBOJ0HxB059278@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Scheidell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 921CA10656FF for ; Fri, 24 Dec 2010 18:59:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 66C6A8FC19 for ; Fri, 24 Dec 2010 18:59:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBOIx97t041062 for ; Fri, 24 Dec 2010 18:59:09 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBOIx9ZB041059; Fri, 24 Dec 2010 18:59:09 GMT (envelope-from nobody) Message-Id: <201012241859.oBOIx9ZB041059@red.freebsd.org> Date: Fri, 24 Dec 2010 18:59:09 GMT From: Michael Scheidell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/153431: security/amavisd-new p5-IO-Socket-INET6 causes massive delays on non ipv6 systems X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2010 19:00:18 -0000 >Number: 153431 >Category: ports >Synopsis: security/amavisd-new p5-IO-Socket-INET6 causes massive delays on non ipv6 systems >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 24 19:00:17 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: i386 7.3 >Organization: SECNAP Network Security >Environment: >Description: see: if you include p5-IO-Socket-INET6 with a system that doesn't have ipv6 compiled in the kernel, you can cause 28 second delays PER DNS LOOKUP IN amavisd-new. with mx, a, ptr, dkim, rbl and spf lookups, you can cause 3 mins delays per email. (spamassassin -D < ../test-messages/sample-spam.txt took 6 second without INET6, 2mins 46 seconds with) >How-To-Repeat: portinstall p5-IO-Socket-INET6 on a non ipv6 system: (comes installed as a requirement for amavisd-new) >Fix: Q to maintainer: I can't see why p5-IO-Socket-INET6 is required on non ipv6 systems. without it, everything seems fine. this patch will fix it: diff -bBru /tmp/ Makefile --- /tmp/Makefile 2010-09-21 03:56:39.000000000 -0400 +++ Makefile 2010-12-24 13:51:32.000000000 -0500 @@ -8,7 +8,7 @@ PORTNAME= amavisd-new PORTVERSION= 2.6.4 -PORTREVISION= 8 +PORTREVISION= 9 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ @@ -23,7 +23,6 @@ ${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \ p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \ ${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \ - ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 \ p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server \ p5-Mail-DKIM>=0.33:${PORTSDIR}/mail/p5-Mail-DKIM @@ -224,6 +223,10 @@ .include +.if defined(WITH_IPV6) +RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 +.endif + .if ${PERL_LEVEL} < 500903 RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress .endif >Release-Note: >Audit-Trail: >Unformatted: