From cris@deana.it  Mon Jan 30 23:15:16 2006
Return-Path: <cris@deana.it>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B75D416A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Jan 2006 23:15:16 +0000 (GMT)
	(envelope-from cris@deana.it)
Received: from mail.deana.it (bsd.deana.it [62.123.205.227])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A80BF43D70
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Jan 2006 23:15:14 +0000 (GMT)
	(envelope-from cris@deana.it)
Received: (qmail 17437 invoked by uid 89); 31 Jan 2006 00:15:13 +0100
Received: from unknown (HELO deana.it) (62.123.205.228)
  by mail.deana.it with SMTP; 31 Jan 2006 00:15:13 +0100
Received: (qmail 24381 invoked by uid 1001); 30 Jan 2006 23:15:25 -0000
Message-Id: <20060130231525.24380.qmail@deana.it>
Date: 30 Jan 2006 23:15:25 -0000
From: Cristiano Deana <cris@gufi.org>
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc: garga@FreeBSD.org
Subject: mail/qmail-tls tls+auth doesn't work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         92574
>Category:       ports
>Synopsis:       mail/qmail-tls tls+auth doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 30 23:20:09 GMT 2006
>Closed-Date:    Tue Jan 31 09:38:40 GMT 2006
>Last-Modified:  Tue Jan 31 09:38:40 GMT 2006
>Originator:     Cristiano Deana
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
G.U.F.I.
>Environment:
System: FreeBSD bsd.deana.it 6.0-STABLE FreeBSD 6.0-STABLE #2: Thu Jan 19 18:42:33 CET 2006 root@casa.deana.it:/usr/obj/usr/src/sys/CASA i386


>Description:
        ports mail/qmail-tls doesn't works correctly:
        after 'ehlo' command smtpd should reply with
        250-STARTTLS
        only in a line, not with
        250-STARTTLS AUTH LOGIN PLAIN

>How-To-Repeat:
        cd /usr/ports/mail/qmail-tls
        choose smtp-auth option, then try to use auth with TLS,
        client doesn't understand 'STARTTLS' smtpd reply.

>Fix:

Patch the patch of the patch!

--- qmail-tls.patch begins here ---
--- qmail/files/auth.patch.patch-tls.orig	Mon Jan 30 23:53:48 2006
+++ qmail/files/auth.patch.patch-tls	Mon Jan 30 23:45:31 2006
@@ -35,7 +35,7 @@
    	socket.lib`
    
    qmail-smtpd.0: \
-@@ -174,30 +176,38 @@
+@@ -174,30 +176,40 @@
    stralloc greeting = {0};
    
  ***************
@@ -55,7 +55,7 @@
 -  void smtp_rset()
 ---- 241,255 ----
 -  }
-+--- 277,298 ----
++--- 277,300 ----
    void smtp_ehlo(arg) char *arg;
    {
 -!   smtp_greet("250-");
@@ -63,16 +63,18 @@
 +    smtp_greet("250-");
 ++ #ifdef AUTHCRAM
 +  #ifdef TLS
-+!   if (!ssl) out("\r\n250-STARTTLS AUTH LOGIN CRAM-MD5 PLAIN");
-+!   if (!ssl) out("\r\n250-STARTTLS AUTH=LOGIN CRAM-MD5 PLAIN");
++!   if (!ssl) out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
++!   if (!ssl) out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
++!   if (!ssl) out("\r\n250-STARTTLS");
 +! #else
  !   out("\r\n250-AUTH LOGIN CRAM-MD5 PLAIN");
  !   out("\r\n250-AUTH=LOGIN CRAM-MD5 PLAIN");
 +! #endif
 +! #else
 +! #ifdef TLS
-+!   if (!ssl) out("\r\n250-STARTTLS AUTH LOGIN PLAIN");
-+!   if (!ssl) out("\r\n250-STARTTLS AUTH=LOGIN PLAIN");
++!   if (!ssl) out("\r\n250-AUTH LOGIN PLAIN");
++!   if (!ssl) out("\r\n250-AUTH=LOGIN PLAIN");
++!   if (!ssl) out("\r\n250-STARTTLS");
  ! #else
  !   out("\r\n250-AUTH LOGIN PLAIN");
  !   out("\r\n250-AUTH=LOGIN PLAIN");
--- qmail-tls.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jan 30 23:24:17 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92574 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Tue Jan 31 09:38:38 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92574 
>Unformatted:
