emacs-pretest-bug
[Top][All Lists]
Advanced

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

starttls fails with gnutls


From: Otto Maddox
Subject: starttls fails with gnutls
Date: Fri, 25 Nov 2005 00:51:16 +0000

I try to send mail with ordinary Mail mode using smtpmail, smtp auth
and starttls.

(setq send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "smtp.my.isp.invalid")
(setq smtpmail-debug-info t)
(setq smtpmail-debug-verb t)
(setq smtpmail-smtp-service 587)
(setq smtpmail-auth-credentials
      '(("smtp.my.isp.invalid" 587 "username" "password")))
(setq smtpmail-starttls-credentials
      '(("smtp.my.isp.invalid" 587 nil nil)))

If starttls-use-gnutls is set to t, and starttls-gnutls-program is set
to gnutls-cli, then it hangs with the following *trace of SMTP session
to smtp.my.isp.invalid* (I have manually removed the ^M characters):

    220 smtp.my.isp.invalid ESMTP Postfix 02
    EHLO my.fqdn.invalid
    250-smtp.my.isp.invalid
    250-PIPELINING
    250-SIZE 100000000
    250-ETRN
    250-STARTTLS
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250 8BITMIME
    STARTTLS
    220 Ready to start TLS
    QUIT

I have to C-g a couple of times to get out of it.  I have tried the
following gnutls-cli programs

GNU TLS test client, version 1.2.7. Libgnutls 1.2.7.
GNU TLS test client, version 1.3.0. Libgnutls 1.3.0.

each with the same result.

However, it works fine if I use the starttls 0.10, by setting
starttls-use-gnutls to nil and starttls-program appropriately.
However, the *trace of SMTP session to smtp.my.isp.invalid* buffer
does have a curious "Process SMTP killed" at the start (there is a
blank line before "Process SMTP killed"):


    Process SMTP killed
    220 smtp.my.isp.invalid ESMTP Postfix 02
    EHLO my.fqdn.invalid
    250-smtp.my.isp.invalid
    250-PIPELINING
    250-SIZE 100000000
    250-ETRN
    250-STARTTLS
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250 8BITMIME
    STARTTLS
    220 Ready to start TLS
    EHLO my.fqdn.invalid
    250-smtp.my.isp.invalid
    250-PIPELINING
    250-SIZE 100000000
    250-ETRN
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250 8BITMIME
    AUTH LOGIN
    334 VXNlcm5hbWU6
    YWxuZXNiaXRfdHVmZm1haWwuY29t
    334 UGFzc3dvcmQ6
    S2lNRzEyLg==
    235 Authentication successful
    MAIL FROM:<address@hidden> SIZE=223
    250 Ok
    RCPT TO:<address@hidden>
    250 Ok
    DATA
    354 End data with <CR><LF>.<CR><LF>
    [message manually deleted]
    .
    250 Ok: queued as 15065A32DB
    QUIT
    221 Bye

In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.3.0)
 of 2005-11-22

-- 
http://www.fastmail.fm - The professional email service





reply via email to

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