emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open-network-stream problems on W32


From: Christoph Scholtes
Subject: Re: open-network-stream problems on W32
Date: Wed, 04 May 2011 21:47:32 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 5/2/2011 12:37 PM, Ted Zlatanov wrote:

It should Just Work; you're never hitting the GnuTLS code and
`smtpmail-send-it' is trying to use just the "gnutls-cli" command-line
utility.  `smtpmail-send-it' needs to be configured or fixed in code
(probably the former).

What do you mean by "you're never hitting the GnuTLS code"?

I have been doing some more testing and compared behavior of the latest Emacs trunk on Debian (Squeeze) and Windows 7. I am using the same configuration in both instances:

(require 'smtpmail)
(setq send-mail-function 'smtpmail-send-it
      message-send-mail-function 'smtpmail-send-it
      smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
      smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg")
      smtpmail-default-smtp-server "smtp.gmail.com"
      smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-smtp-service 587
      user-mail-address "address@hidden"
      smtpmail-debug-info t)

On Debian, at first, I didn't have `gnutls-bin' installed, so it failed with the same error as on Windows ("SMTP protocol error", see my earlier post). I then installed `gnutls-bin' and then everything worked fine.

Sending...
Sending via mail...
Opening STARTTLS connection to `smtp.gmail.com:587'...done
220 mx.google.com ESMTP d9sm723168ibb.19
250-mx.google.com at your service,
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
220 2.0.0 Ready to start TLS
250-mx.google.com at your service,
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
235 2.7.0 Accepted
250 2.1.0 OK d9sm723168ibb.19
250 2.1.5 OK d9sm723168ibb.19
354  Go ahead d9sm723168ibb.19
250 2.0.0 OK 1304566065 d9sm723168ibb.19
Sending...done

On Windows, I noticed that it couldn't find `gnutls-cli' either so I added the directory with the executable to the Emacs path.

Now I get this:

Sending...
Sending via mail...
Opening STARTTLS connection to `smtp.gmail.com:587'...done
220 mx.google.com ESMTP 4sm723326ibc.15
250-mx.google.com at your service,
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
c:/Users/Christoph/A: 0% (0/105)
c:/Users/Christoph/A: 100% (105/105)
c:/Users/Christoph/A: 0% (0/105)
c:/Users/Christoph/A: 100% (105/105)
530 5.7.0 Must issue a STARTTLS command first. 4sm723326ibc.15
221 2.0.0 closing connection 4sm723326ibc.15
while: Sending failed; SMTP protocol error

Why is the behavior with the same configuration different on Windows than on GNU/Linux? For the record, I made sure that I am using the same GnuTLS version on Windows and GNU/Linux, v2.8.6.

Christoph



reply via email to

[Prev in Thread] Current Thread [Next in Thread]