Qmail
[Top] [All Lists]

Re: Qmail TLS - No Received encrypted header [SOLVED]

To: qmail@list.cr.yp.to
Subject: Re: Qmail TLS - No Received encrypted header [SOLVED]
From: Unga <unga888@yahoo.com>
Date: Fri, 10 Aug 2007 00:29:24 -0700 (PDT)
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=jqiuugIgi72IvIz+JWohpw1EX5jahfj/+mqOqeHCtI10dHKjJboCW1rIJ3gTe15h3i8MOOsBTwqAGF3hNC2v/c58tYSPvkePEfNkM0H5AulW4DEAAGhZ/pNUuc9+SNtJhhw9vXG9l0gP5G7//08gg611V2pliImAy5gpYt8R4nk=;
Domainkey-status: good (test mode)
In-reply-to: <20070809183709.GJ851@tunican.local>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
Kyle

Thanks for highlighting the cause. Yep, now it works.

Regards
Unga



--- Kyle Wheeler <kyle-qmail@memoryhole.net> wrote:

> On Thursday, August  9 at 09:41 AM, quoth Unga:
> >I don't get a "Received [..] with
> (DHE-RSA-AES256-SHA
> >encrypted) SMTP;") header in mails I send. I tried
> >with Thunderbird ver. 1.5.0.7. What I get is:
> >Received: ...with ESMTPA.
> 
> It's because of a bit of laziness on the part of the
> person merging 
> the two patches. The AUTH patch sets the protocol
> string to be 
> "ESMTPA", and the TLS patch sets the protocol string
> to be 
> "(DHE-RSA-AES256-SHA encrypted) SMTP", and they
> overwrite each other. 
> Whichever one happens last wins; so if you encrypt
> first and then 
> auth, all you'll see is that your mail was sent
> authenticated.
> 
> Look in the code, in smtp_auth(), for where it says:
> 
>      protocol = "ESMTPA";
> 
> and replace it with:
> 
>      if (smtps && ssl) {
>          if (!stralloc_copys(&proto, "ESMTPSA (")
>            || !stralloc_cats(&proto,
> SSL_get_cipher(ssl))
>            || !stralloc_cats(&proto, " encrypted,
> authenticated)")) 
>            die_nomem();
>          if (!stralloc_0(&proto)) die_nomem();
>          protocol = proto.s;
>      } else {
>          protocol = "ESMTPA";
>      }
> 
> ...and you'll have to move the definition of the
> proto variable higher 
> up in the file so that smtp_auth() can have access
> to it.
> 
> Or you can complain to the guy you got the patch
> from! :)
> 
> ~Kyle
> -- 
> Power always thinks it has a great soul and vast
> views beyond the 
> comprehension of the weak; and that it is doing
> God's service when it 
> is violating all his laws.
>                                                     
>      -- John Adams
> 



       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

<Prev in Thread] Current Thread [Next in Thread>