From andrew@areilly.bpa.nu  Thu Nov 22 14:40:41 2007
Return-Path: <andrew@areilly.bpa.nu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 26A2216A417
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Nov 2007 14:40:41 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from qsrv02sl.mx.bigpond.com (qsrv02sl.mx.bigpond.com [144.140.93.182])
	by mx1.freebsd.org (Postfix) with ESMTP id A25AB13C467
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Nov 2007 14:40:40 +0000 (UTC)
	(envelope-from andrew@areilly.bpa.nu)
Received: from oaamta07sl.mx.bigpond.com ([124.188.162.219])
          by omta01sl.mx.bigpond.com with ESMTP
          id <20071122034135.WHGI9168.omta01sl.mx.bigpond.com@oaamta07sl.mx.bigpond.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 22 Nov 2007 03:41:35 +0000
Received: from areilly.bpa.nu ([124.188.162.219])
          by oaamta07sl.mx.bigpond.com with ESMTP
          id <20071122034135.ZKZS11533.oaamta07sl.mx.bigpond.com@areilly.bpa.nu>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 22 Nov 2007 03:41:35 +0000
Received: (qmail 17413 invoked by uid 501); 22 Nov 2007 03:39:01 -0000
Message-Id: <20071122033901.17412.qmail@areilly.bpa.nu>
Date: 22 Nov 2007 03:39:01 -0000
From: Andrew Reilly <areilly@bigpond.net.au>
Reply-To: Andrew Reilly <areilly@bigpond.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: qmail-tls port missing openssl cipher list installation
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         118198
>Category:       ports
>Synopsis:       mail/qmail-tls port missing openssl cipher list installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 22 14:50:01 UTC 2007
>Closed-Date:    Wed Dec 26 16:44:32 UTC 2007
>Last-Modified:  Wed Dec 26 16:50:04 UTC 2007
>Originator:     Andrew Reilly
>Release:        FreeBSD 7.0-BETA3 amd64
>Organization:
>Environment:
System: FreeBSD duncan.reilly.home 7.0-BETA3 FreeBSD 7.0-BETA3 #1: Sun Nov 18 04:20:31 EST 2007 root@duncan:/usr/obj/usr/src/sys/DUNCAN amd64


        Machine is a 1GB Athlon64-X2 running SMP, but I
        don't think that matters here.  Port version is:
        qmail-tls-1.03.20021228_1 installed november 19, based
        on then-current ports tree.

>Description:
        Installed /usr/ports/mail/qmail-tls (fixed as per
        ports/118117) and think that all is fine, but a bunch
        of missing mail prompted me to point first tcpdump and
        then openssl s_client at the new server, whereupon
        it became obvious that actual attempts to *use* the
        STARTTLS facility resulted in the ssl session dying with
        a message like:

2472:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:596:

	Investigation with google found this pertinent web page:
	http://www.shupp.org/toaster/?page=test
        which contained a description of the problem (which
        apparently happened on Debian Linux too) and the
        following fix, which works for me.

>How-To-Repeat:
	cd /usr/ports/mail/qmail-tls
	make install
	# edit /usr/local/openssl/openssl.cnf to suit
	make certificate
	openssl s_client -debug -crlf -starttls smtp -connect localhost:25
        # notice that connection terminates immediately and
        #error message noted above is last thing displayed.

>Fix:

	Per the toaster page:
	openssl ciphers > /var/qmail/control/tlsclientciphers
	openssl ciphers > /var/qmail/control/tlsserverciphers

        the s_client session described above now leaves you
        talking SMTP over the SSL link.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Nov 22 22:00:20 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118198 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Wed Dec 26 16:44:31 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118198 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/118198: commit references a PR
Date: Wed, 26 Dec 2007 16:44:01 +0000 (UTC)

 garga       2007-12-26 16:43:55 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/qmail           Makefile pkg-plist 
     mail/qmail-mysql     Makefile 
     mail/qmail-spamcontrol Makefile 
     mail/qmail-tls       Makefile 
   Added files:
     mail/qmail/files     extra-patch-amd64 qmail-smtpd.rcNG 
   Log:
   - Fix a segfault on amd64 (except on qmail-spamcontrol and qmail-ldap) [1]
   - Add an rcNG startup example file to QMAIL_PREFIX/boot [2]
   - Bump PORTREVISION due to rcNG add (except for qmail-ldap)
   - Fix make certificate to add ciphers file to QMAIL_PREFIX/control [3]
   
   PR:             ports/118117 [1], ports/117422 [2], ports/118198 [3]
   Submitted by:   Andrew Reilly <areilly@bigpond.net.au> [1] [3]
                   Nick@van-laarhoven.org [2]
   
   Revision  Changes    Path
   1.20      +1 -1      ports/mail/qmail-mysql/Makefile
   1.23      +1 -1      ports/mail/qmail-spamcontrol/Makefile
   1.22      +1 -1      ports/mail/qmail-tls/Makefile
   1.126     +10 -1     ports/mail/qmail/Makefile
   1.1       +20 -0     ports/mail/qmail/files/extra-patch-amd64 (new)
   1.1       +52 -0     ports/mail/qmail/files/qmail-smtpd.rcNG (new)
   1.17      +2 -1      ports/mail/qmail/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
