From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Maggi Newsgroups: gmane.emacs.bugs Subject: bug#3160: smtpmail request, support immediate starttls Date: Wed, 29 Apr 2009 10:19:23 +0200 Message-ID: <87skjrdg8k.fsf@rapitore.luna> Reply-To: Marco Maggi , 3160@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241019518 10256 80.91.229.12 (29 Apr 2009 15:38:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 15:38:38 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 17:38:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzBrg-0008SG-6b for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 17:38:28 +0200 Original-Received: from localhost ([127.0.0.1]:50037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzBrf-0004xk-9E for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 11:38:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lz5Cy-0007qX-JL for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:32:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lz5Cs-0007p8-CS for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:31:58 -0400 Original-Received: from [199.232.76.173] (port=52332 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lz5Cs-0007p1-8t for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:31:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51585) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lz5Cr-00041c-GA for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:31:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3T8Vp5L030563; Wed, 29 Apr 2009 01:31:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3T8U3Br029430; Wed, 29 Apr 2009 01:30:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Marco Maggi Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Apr 2009 08:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3160 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124099321027264 (code B ref -1); Wed, 29 Apr 2009 08:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 Apr 2009 08:20:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3T8K5g3027148 for ; Wed, 29 Apr 2009 01:20:06 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lz51Q-0003uq-Q8 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:20:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lz51M-0003rd-36 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:20:04 -0400 Original-Received: from [199.232.76.173] (port=54121 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lz51L-0003ra-To for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:19:59 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.189]:12949) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lz51L-0001Ov-EO for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2009 04:19:59 -0400 Original-Received: by fk-out-0910.google.com with SMTP id z23so445991fkz.10 for ; Wed, 29 Apr 2009 01:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:original-sender:to:subject :x-loop:x-mailer:from:date:message-id:lines:mime-version :content-type; bh=2vlgygSggP3QBrWpN1zpSu6/+r+4xOmMwMeNpxwTU+8=; b=fAFCpvl7e0GFjjdG5rSeHlDKgmjADXPc6w5/GrxYxhitNibKFneyUwmgQjPg3HfP0H 01TXbwfWnss2Ua2KSm/+dkndXM/OaglsWkFYkCtVf8R2QJvTiQMwB6myX1LVOky0p6C6 Y4kHtsHO8A5dRNym9nMs2aDGVBqEUTYuc5tEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=original-sender:to:subject:x-loop:x-mailer:from:date:message-id :lines:mime-version:content-type; b=ulbHl6RA9jF78tK6sE/F9YGx3Us1a4kgVPyqSugAMyEEQETowAP/kDz3GAUPTbVebl zWYJZC81xxLhqR8NsX1rZQ+HoRdL5NzF1NoRCw/pTyWyXdGkHDj2cSJzwuynmiT1GkNK uhhpmDSgLOr2kmCV68BKRzLLCZJVUvFsMWQMk= Original-Received: by 10.103.226.10 with SMTP id d10mr26128mur.105.1240993197455; Wed, 29 Apr 2009 01:19:57 -0700 (PDT) Original-Received: from rapitore.luna (net-93-147-77-56.t2.dsl.vodafone.it [93.147.77.56]) by mx.google.com with ESMTPS id y6sm1711963mug.29.2009.04.29.01.19.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 29 Apr 2009 01:19:56 -0700 (PDT) Original-Sender: mrc.mgg@gmail.com X-Loop: marco@maggi.it X-Mailer: GNU Emacs Original-Lines: 41 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 29 Apr 2009 04:31:58 -0400 X-Mailman-Approved-At: Wed, 29 Apr 2009 11:37:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27541 Archived-At: Ciao, I am using Emacs 22.3 and I miss a feature in "smtpmail.el"; I have checked the CVS version [1] and it seems to be missing there, too. I can successfully use smtp.gmail.com:587 to send mail using "gnutls-cli" to establish the encrypted bridge. With this server: smtpmail exchanges greetings, then sends a STARRTLS command, then delivers a SIGALRM signal to "gnutls-cli" to build the bridge; after this the ESMTP dialogue goes on. Fine. With the server relay.poste.it:465 (please do not mailbomb it) the procedure does not work because it wants the bridge built immediately, without exchanging greetings. This can be done by sending SIGALRM to "gnutls-cli" right after the connection has been successfully established. After this: the ESMTP dialogue can start as usual with greetings, auth, etc. I am not an Elisp programmer, but I guess that the problem is in `smtpmail-via-smtp' which always tries to send EHLO/HELO and only after considers a call to `starttls-negotiate'. The solution should be a customisable variable that selects the current procedure or an immediate call to `starttls-negotiate'. An alternative solution is not to use the "-s"/"--starttls" on the command line of "gnutls-cli", but this would require a much bigger change. TIA P.S. If more details are needed, please CC me because I am not on this list. [1] http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/mail/smtpmail.el?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD -- Marco Maggi