From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 26 16:20:15 2011 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 2C34E106566C for ; Thu, 26 May 2011 16:20:15 +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 F0A3A8FC1A for ; Thu, 26 May 2011 16:20:14 +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 p4QGKELk002105 for ; Thu, 26 May 2011 16:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4QGKEgL002104; Thu, 26 May 2011 16:20:14 GMT (envelope-from gnats) Resent-Date: Thu, 26 May 2011 16:20:14 GMT Resent-Message-Id: <201105261620.p4QGKEgL002104@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, Niclas Zeising Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8599106564A for ; Thu, 26 May 2011 16:17:26 +0000 (UTC) (envelope-from zeising@daemonic.se) Received: from mail.lysator.liu.se (unknown [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 17B868FC0A for ; Thu, 26 May 2011 16:17:25 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id A1FBC40003 for ; Thu, 26 May 2011 18:17:24 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 9724D40006; Thu, 26 May 2011 18:17:24 +0200 (CEST) Received: from mx.daemonic.se (h-90-99.A163.priv.bahnhof.se [79.136.90.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id E896A40003 for ; Thu, 26 May 2011 18:17:23 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id BC85B119C04 for ; Thu, 26 May 2011 18:17:22 +0200 (CEST) Received: from vincent.daemonic.se (login.daemonic.se [IPv6:2001:470:dca9:0:1::10]) by mail.daemonic.se (Postfix) with ESMTPS id 5BBE512B2DA for ; Thu, 26 May 2011 18:17:22 +0200 (CEST) Received: (from zeising@localhost) by vincent.daemonic.se (8.14.4/8.14.4/Submit) id p4QGHMg2080356; Thu, 26 May 2011 18:17:22 +0200 (CEST) (envelope-from zeising) Message-Id: <201105261617.p4QGHMg2080356@vincent.daemonic.se> Date: Thu, 26 May 2011 18:17:22 +0200 (CEST) From: Niclas Zeising To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/157352: [PATCH] update to security/amavisd-new X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Niclas Zeising List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 16:20:15 -0000 >Number: 157352 >Category: ports >Synopsis: [PATCH] update to security/amavisd-new >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu May 26 16:20:14 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Niclas Zeising >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64 >Description: A new version of amavisd-new has been released, containing bug fixes. Amongst other our local patch to avoid sending double rejection notifications is now part of the release. For details see the release notes. >How-To-Repeat: N/A >Fix: Attached patch updates amavisd-new to version 2.6.6, which is the latest stable release. Apply it with patch -E to remove the now un-needed file files/patch-amavisd. --- security.amavisd-new.update.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/security/amavisd-new/Makefile,v retrieving revision 1.84 diff -u -d -r1.84 Makefile --- Makefile 25 Jan 2011 23:24:03 -0000 1.84 +++ Makefile 26 May 2011 14:36:25 -0000 @@ -7,8 +7,7 @@ # Based on amavisd ports makefile. PORTNAME= amavisd-new -PORTVERSION= 2.6.4 -PORTREVISION= 11 +PORTVERSION= 2.6.6 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ @@ -18,6 +17,8 @@ MAINTAINER= gabor@FreeBSD.org COMMENT= Performance-enhanced daemonized version of amavis-perl +LICENCE= GPLv2 + RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \ ${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \ ${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \ Index: distinfo =================================================================== RCS file: /home/ncvs/ports/security/amavisd-new/distinfo,v retrieving revision 1.41 diff -u -d -r1.41 distinfo --- distinfo 17 Jan 2011 14:33:14 -0000 1.41 +++ distinfo 26 May 2011 14:36:25 -0000 @@ -1,2 +1,2 @@ -SHA256 (amavisd-new-2.6.4.tar.gz) = 40fe1b655deb934c7a655a6b5b430df268ec9ac80754b120795bc45d4ae769ef -SIZE (amavisd-new-2.6.4.tar.gz) = 947596 +SHA256 (amavisd-new-2.6.6.tar.gz) = 4d3ce005f63dce8ce474e07bec001dac545871e2bf5641c1ffebff6b979e33d5 +SIZE (amavisd-new-2.6.6.tar.gz) = 952177 Index: files/patch-amavisd =================================================================== RCS file: files/patch-amavisd diff -N files/patch-amavisd --- files/patch-amavisd 12 Sep 2009 18:51:59 -0000 1.23 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,72 +0,0 @@ ---- amavisd.orig 2009-06-25 14:39:01.000000000 +0200 -+++ amavisd 2009-08-01 13:51:53.000000000 +0200 -@@ -1492,6 +1492,7 @@ - CC_BANNED, sub { c('final_banned_destiny') }, - CC_SPAM, sub { c('final_spam_destiny') }, - CC_BADH, sub { c('final_bad_header_destiny') }, -+ CC_MTA.',2', D_REJECT, - CC_OVERSIZED, D_BOUNCE, - CC_CATCHALL, D_PASS, - ); -@@ -11316,6 +11317,32 @@ - $r->blocking_ccat($blocking_ccat) if !defined($r->blocking_ccat); - $msginfo->blocking_ccat($blocking_ccat) - if !defined($msginfo->blocking_ccat); -+ my($final_destiny) = -+ $r->setting_by_contents_category(cr('final_destiny_by_ccat')); -+ if ($final_destiny == D_PASS) { -+ $final_destiny = D_REJECT; # impossible to pass, change to reject -+ } -+ local($1,$2); -+ $r->recip_destiny($final_destiny); -+ if ($final_destiny == D_DISCARD && $smtp_resp =~ /^5/) { -+ $smtp_resp =~ s{^5(\d\d) 5(\.\d\.\d)}{250 2$2}; # 5xx -> 250 -+ } -+ my($smtp_reason) = # get the custom smtp response reason text -+ $r->setting_by_contents_category(cr('smtp_reason_by_ccat')); -+ $smtp_reason = '' if !defined $smtp_reason; -+ if ($smtp_reason ne '') { -+ my(%mybuiltins) = %builtins; # make a local copy -+ $smtp_reason = expand(\$smtp_reason, \%mybuiltins); -+ $smtp_reason = !ref($smtp_reason) ? '' : $$smtp_reason; -+ chomp($smtp_reason); $smtp_reason = sanitize_str($smtp_reason,1); -+ $smtp_reason = substr($smtp_reason,0,100) . "..." -+ if length($smtp_reason) > 100+3; -+ } -+ $smtp_resp =~ /^(\d\d\d(?: \d\.\d\.\d)?)\s*(.*)\z/; -+ my($dis) = $final_destiny == D_DISCARD ? ' Discarded' : ''; -+ $r->recip_smtp_response("$1$dis $smtp_reason, $2"); -+ $r->recip_done(1); # fake a delivery (confirm delivery to a bit bucket) -+ # note that 5xx status rejects may later be converted to bounces - } - $msginfo->header_edits($hdr_edits); # restore original edits just in case - $elapsed{'TimeElapsedForwarding'} = Time::HiRes::time - $t0_sect; -@@ -17774,23 +17801,21 @@ - # - sub enhance_smtp_response($$$$$) { - my($smtp_resp,$am_id,$mta_id,$dflt_enhcode,$cmd_name) = @_; -- local($1,$2,$3); my($resp_shortmsg,$resp_msg); -+ local($1,$2,$3); my($resp_msg); - my($resp_code,$resp_enhcode) = ('451', '4.5.0'); - if (!defined($smtp_resp) || $smtp_resp eq '') { -- $resp_shortmsg = 'No resp. to '.$cmd_name; -+ $smtp_resp = sprintf('No resp. to %s', $cmd_name); - } elsif ($smtp_resp !~ /^[245]\d{2}/) { -- $resp_shortmsg = 'Bad resp. to '.$cmd_name; -+ $smtp_resp = sprintf('Bad resp. to %s: %s', $cmd_name,$smtp_resp); - } elsif ($smtp_resp =~ /^ (\d{3}) [ \t]+ ([245] \. \d{1,3} \. \d{1,3})? - \s* (.*) \z/xs) { - ($resp_code, $resp_enhcode, $resp_msg) = ($1, $2, $3); - my($c) = substr($resp_code,0,1); - if ($resp_enhcode eq '' && $resp_code =~ /^[245]/) - { $resp_enhcode = $dflt_enhcode; $resp_enhcode =~ s/^\d*/$c/ } -- $resp_shortmsg = $c eq '2' ? 'Ok' : $c eq '4' ? 'TempFailed' : 'Failed'; - } -- sprintf("%s %s %s, id=%s, from MTA(%s): %s", -- $resp_code, $resp_enhcode, $resp_shortmsg, -- $am_id, $mta_id, $smtp_resp); -+ sprintf("%s %s from MTA(%s): %s", -+ $resp_code, $resp_enhcode, $mta_id, $smtp_resp); - } - - # Send mail using SMTP - single transaction --- security.amavisd-new.update.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: