unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3160: smtpmail request, support immediate starttls
@ 2009-04-29  8:19 Marco Maggi
  2011-08-24 18:05 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Maggi @ 2009-04-29  8:19 UTC (permalink / raw)
  To: bug-gnu-emacs


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







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#3160: smtpmail request, support immediate starttls
  2009-04-29  8:19 bug#3160: smtpmail request, support immediate starttls Marco Maggi
@ 2011-08-24 18:05 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-08-24 18:05 UTC (permalink / raw)
  To: Marco Maggi; +Cc: 3160

> 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.
>
> The solution should be a customisable variable that selects the
> current procedure or an immediate call to `starttls-negotiate'.

This is fixed by the introduction of smtpmail-stream-type (which can be
set to `starttls') in the bzr trunk, so I'm closing this bug.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-24 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29  8:19 bug#3160: smtpmail request, support immediate starttls Marco Maggi
2011-08-24 18:05 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).