Gnus development mailing list
 help / color / mirror / Atom feed
* smtpmail and starttls
@ 2005-04-28 14:37 Andrew Raines
  2005-04-29  8:35 ` Simon Josefsson
  2005-04-29 18:08 ` STARTTLS and win32 (was: smtpmail and starttls) Andrew Raines
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Raines @ 2005-04-28 14:37 UTC (permalink / raw)


I'm using Gnus 5.11 on Emacs 21.3.50/win32 (2005-01-30), with
the OEM smtpmail.elc.  When submitting a message to an SMTP
server advertising STARTTLS, smtpmail never issues the verb
in response.  I've poked around in smtpmail-via-smtp, and if
I comment out one line (below), smtpmail issues the verb, but
then Emacs hangs while trying to call starttls.exe.

  (if (and do-starttls
           (smtpmail-find-credentials smtpmail-starttls-credentials host port)
           (member 'starttls supported-extensions)
 --->    ;;   (numberp (process-id process)))

My starttls.exe binary is in c:\WINDOWS, which is in
exec-path, which should be findable by Emacs:

   (executable-find "starttls") <--- C-j
   "c:/WINDOWS/starttls.exe"

Does anybody use smtpmail and STARTTLS on windows-nt
successfully?

My relevant .gnus.el portion:

   (setq smtpmail-smtp-service 587
         send-mail-function 'smtpmail-send-it
         message-send-mail-function 'smtpmail-send-it
         smtpmail-debug-info t
         smtpmail-smtp-server "smtp.raines.ws"
         smtpmail-starttls-credentials '(("smtp.raines.ws" 587 nil nil)))

Thanks for any help.

-- 
    aaraines@pobox.com (Andrew A. Raines)




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

* Re: smtpmail and starttls
  2005-04-28 14:37 smtpmail and starttls Andrew Raines
@ 2005-04-29  8:35 ` Simon Josefsson
  2005-04-29 15:12   ` Andrew Raines
  2005-04-29 18:08 ` STARTTLS and win32 (was: smtpmail and starttls) Andrew Raines
  1 sibling, 1 reply; 4+ messages in thread
From: Simon Josefsson @ 2005-04-29  8:35 UTC (permalink / raw)


Andrew Raines <aaraines@pobox.com> writes:

> I'm using Gnus 5.11 on Emacs 21.3.50/win32 (2005-01-30), with
> the OEM smtpmail.elc.  When submitting a message to an SMTP
> server advertising STARTTLS, smtpmail never issues the verb
> in response.  I've poked around in smtpmail-via-smtp, and if
> I comment out one line (below), smtpmail issues the verb, but
> then Emacs hangs while trying to call starttls.exe.
>
>   (if (and do-starttls
>            (smtpmail-find-credentials smtpmail-starttls-credentials host port)
>            (member 'starttls supported-extensions)
>  --->    ;;   (numberp (process-id process)))
>
> My starttls.exe binary is in c:\WINDOWS, which is in
> exec-path, which should be findable by Emacs:
>
>    (executable-find "starttls") <--- C-j
>    "c:/WINDOWS/starttls.exe"
>
> Does anybody use smtpmail and STARTTLS on windows-nt
> successfully?

Interesting, can you find out what (process-id process) return at that
point?  Perhaps process-id's on Windows aren't numbers?  The test is
intended to see if the process is a external process (starttls) or
internal network connection (plain tcp).



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

* Re: smtpmail and starttls
  2005-04-29  8:35 ` Simon Josefsson
@ 2005-04-29 15:12   ` Andrew Raines
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Raines @ 2005-04-29 15:12 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Andrew Raines <aaraines@pobox.com> writes:

[...]

>>   (if (and do-starttls
>>            (smtpmail-find-credentials smtpmail-starttls-credentials host port)
>>            (member 'starttls supported-extensions)
>>  --->    ;;   (numberp (process-id process)))

[...]

> Interesting, can you find out what (process-id process)
> return at that point?

Debugger entered--returning value: nil
  process-id(#<process SMTP>)
* (numberp (process-id process))
  (progn (debug) (numberp (process-id process)))
  (and do-starttls (smtpmail-find-credentials ...)))))

-- 
    aaraines@pobox.com (Andrew A. Raines)




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

* STARTTLS and win32 (was: smtpmail and starttls)
  2005-04-28 14:37 smtpmail and starttls Andrew Raines
  2005-04-29  8:35 ` Simon Josefsson
@ 2005-04-29 18:08 ` Andrew Raines
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Raines @ 2005-04-29 18:08 UTC (permalink / raw)


Andrew Raines <aaraines@pobox.com> writes:

> Does anybody use smtpmail and STARTTLS on windows-nt
> successfully?

I fixed my earlier problem of smtpmail not issuing STARTTLS
to TLS-enabled hosts (by removing the starttls.el from
~/elisp and using the one with CVS Emacs's Gnus; thanks for
the response, Simon), but the above question still stands.

Neither starttls.exe or gnutls-cli.exe successfully returns a
TLS-enabled connection.  Using either one (via
starttls-use-gnutls) causes Emacs to hang waiting for a
response.  I can see both being *run* by looking at the Task
Manager.  Emacs just doesn't seem to care.

I'd appreciate input from anyone who has this working.

-- 
    aaraines@pobox.com (Andrew A. Raines)




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

end of thread, other threads:[~2005-04-29 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 14:37 smtpmail and starttls Andrew Raines
2005-04-29  8:35 ` Simon Josefsson
2005-04-29 15:12   ` Andrew Raines
2005-04-29 18:08 ` STARTTLS and win32 (was: smtpmail and starttls) Andrew Raines

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 NNTP newsgroup(s).