unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* smtpmail with tls hangs
@ 2008-08-29 12:20 Peter Rayner
  2008-08-29 15:14 ` David
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Rayner @ 2008-08-29 12:20 UTC (permalink / raw)
  To: help-gnu-emacs

This is under emacs-22.1 as provided on FC-8.
Here is the relevant part of .emacs
(setq smtpmail-smtp-server "myhost.mydomain")
(setq smtpmail-smtp-service 465)
(setq smtpmail-starttls-credentials
           '(("myhost.mydomain" 465 nil nil)))

I have both gnutls-cli and starttls installed but have set
starttls-use-gnutls true so it should be  using gnutls-cli
When I send a test message it hangs after the c-c c-c ... When I kill
it with c-g  and look at the *Messages* buffer I see
Sending...
Opening STARTTLS connection to `myhost.mydomain'...done
opened connection ; this last message was an extra diagnostic I added
in smtpmail.el

The smtp trace buffer only contains the "quit" from the c-g.

If I run, from the shell
gnutls-cli myhost.mydomain -p 465
I get
220 myhost.mydomain ESMTP Postfix
and typing
EHLO myhost.mydomain
elicits the usual smtp replies. 

Anyone have any ideas either on the problem or suggestions to track it
further?
cheers
Peter
 

-- 
Peter Rayner: LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
address: Bat. 701 LSCE - CEA de Saclay
Orme des Merisiers, 91191 Gif/Yvette
work: +33  (1) 69 08 88 11;	mobile: +33 (6) 75 46 56 52;	 fax: +33 (1) 69 08 77 16
mail-to: peter.rayner@lsce.ipsl.fr
web: http://www-lsce.cea.fr/Pisp/52/peter.rayner.html




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

* Re: smtpmail with tls hangs
  2008-08-29 12:20 smtpmail with tls hangs Peter Rayner
@ 2008-08-29 15:14 ` David
  0 siblings, 0 replies; 2+ messages in thread
From: David @ 2008-08-29 15:14 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Rayner <peter.rayner@lsce.ipsl.fr> writes:
> The smtp trace buffer only contains the "quit" from the c-g.
>
> If I run, from the shell
> gnutls-cli myhost.mydomain -p 465
> I get
> 220 myhost.mydomain ESMTP Postfix
> and typing
> EHLO myhost.mydomain
> elicits the usual smtp replies. 

You're probably dealing with ssmtp instead of smtp+starttls. smtpmail.el
only supports the latter. See e.g. this thread

http://thread.gmane.org/gmane.emacs.help/52049

for details.

-David





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

end of thread, other threads:[~2008-08-29 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 12:20 smtpmail with tls hangs Peter Rayner
2008-08-29 15:14 ` David

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).