unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs can't send mail to office365 with "An unexpected TLS packet was received."
@ 2019-06-28  3:00 Huajian.Luo
  2019-07-02 19:08 ` Herbert J. Skuhra
  0 siblings, 1 reply; 3+ messages in thread
From: Huajian.Luo @ 2019-06-28  3:00 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,
I'm now need use office365 for my working mail, I've set up the configure file as following, but when I sent mail it complains with this message.
I'm using OpenSuse with emacs version GNU Emacs 25.3.1 (x86_64-suse-linux-gnu) of 2018-10-16. and Gnus v5.13

(setq message-send-mail-function 'smtpmail-send-it
      send-mail-function 'smtpmail-send-it
      smtpmail-auth-credentials
      (expand-file-name "~/.authinfo")
      smtpmail-default-smtp-server "smtp.office365.com"
      smtpmail-smtp-server "smtp.office365.com"
      smtpmail-smtp-service 587
      smtpmail-stream-type  'ssl
      )

=======================================================================================================
gnutls.el: (err=[-15] An unexpected TLS packet was received.) boot: (:priority NORMAL :hostname smtp.office365.com :loglevel 0 :min-pri\
me-bits 256 :trustfiles (/etc/ssl/ca-bundle.pem) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process smtpmail>, -15

---------------------------------trace SMTP----------------------------------------------------------------------------

G2PR0401CA0013.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 28 Jun 2019 02:46:44 +0000^M
451 4.7.0 Timeout waiting for client input [SG2PR0401CA0013.apcprd04.prod.outlook.com]^M

Process smtpmail connection broken by remote peer

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

* Emacs can't send mail to office365 with "An unexpected TLS packet was received."
@ 2019-06-28  3:04 huajian Luo
  0 siblings, 0 replies; 3+ messages in thread
From: huajian Luo @ 2019-06-28  3:04 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,
I'm now need use office365 for my working mail, I've set up the configure
file as following, but when I sent mail it complains with this message.
I'm using OpenSuse with emacs version GNU Emacs 25.3.1
(x86_64-suse-linux-gnu) of 2018-10-16. and Gnus v5.13

(setq message-send-mail-function 'smtpmail-send-it
      send-mail-function 'smtpmail-send-it
      smtpmail-auth-credentials
      (expand-file-name "~/.authinfo")
      smtpmail-default-smtp-server "smtp.office365.com"
      smtpmail-smtp-server "smtp.office365.com"
      smtpmail-smtp-service 587
      smtpmail-stream-type  'ssl
      )

=======================================================================================================
gnutls.el: (err=[-15] An unexpected TLS packet was received.) boot:
(:priority NORMAL :hostname smtp.office365.com :loglevel 0 :min-pri\
me-bits 256 :trustfiles (/etc/ssl/ca-bundle.pem) :crlfiles nil :keylist nil
:verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process smtpmail>, -15

---------------------------------trace
SMTP----------------------------------------------------------------------------

G2PR0401CA0013.outlook.office365.com Microsoft ESMTP MAIL Service ready at
Fri, 28 Jun 2019 02:46:44 +0000^M
451 4.7.0 Timeout waiting for client input [
SG2PR0401CA0013.apcprd04.prod.outlook.com]^M

Process smtpmail connection broken by remote peer
上一封 下一封
« 返回


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

* Re: Emacs can't send mail to office365 with "An unexpected TLS packet was received."
  2019-06-28  3:00 Huajian.Luo
@ 2019-07-02 19:08 ` Herbert J. Skuhra
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert J. Skuhra @ 2019-07-02 19:08 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 28 Jun 2019 05:00:54 +0200, "Huajian.Luo" wrote:
> 
> Hi there,
> I'm now need use office365 for my working mail, I've set up the
> configure file as following, but when I sent mail it complains with
> this message.
> I'm using OpenSuse with emacs version GNU Emacs 25.3.1 (x86_64-suse-linux-gnu) of 2018-10-16. and Gnus v5.13
> 
> (setq message-send-mail-function 'smtpmail-send-it
>       send-mail-function 'smtpmail-send-it
>       smtpmail-auth-credentials
>       (expand-file-name "~/.authinfo")
>       smtpmail-default-smtp-server "smtp.office365.com"
>       smtpmail-smtp-server "smtp.office365.com"
>       smtpmail-smtp-service 587
>       smtpmail-stream-type  'ssl
>       )

Does it work if use (setq smtpmail-stream-type 'starttls)?

--
Herbert



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

end of thread, other threads:[~2019-07-02 19:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-28  3:04 Emacs can't send mail to office365 with "An unexpected TLS packet was received." huajian Luo
  -- strict thread matches above, loose matches on Subject: below --
2019-06-28  3:00 Huajian.Luo
2019-07-02 19:08 ` Herbert J. Skuhra

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