Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* smtp outlook.com
@ 2016-02-15  5:49 Zaam Wu
  2016-02-15  8:10 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Zaam Wu @ 2016-02-15  5:49 UTC (permalink / raw)
  To: info-gnus-english


I can fetch imap email from outlook.com. However, cannot send
email through outlook.com.

My `gnus.el' excerpt:

```
;; Outlook imap
(add-to-list 'gnus-secondary-select-methods
	     '(nnimap "outlook"
		      (nnimap-address "imap-mail.outlook.com")
		      (nnimap-server-port 993)
		      (nnimap-stream ssl)))

;; Outlook smtp
(setq send-mail-function 'smtpmail-send-it
      message-send-mail-function 'smtpmail-send-it
      smtpmail-default-smtp-server "smtp-mail.outlook.com"
      smtpmail-smtp-server "smtp-mail.outlook.com"
      smtpmail-stream-type 'starttls ;; or `ssl'
      smtpmail-smtp-service 587)

;; smtp debug
(setq smtpmail-debug-info t
      smtpmail-debug-verb t)

;; starttls
(setq starttls-use-gnutls t
      starttls-gnutls-program "gnutls-cli"
      starttls-extra-arguments nil)

;; authinfo
(setq nntp-authinfo-file
      (nnheader-concat gnus-home-directory "authinfo.gpg")
      nnimap-authinfo-file
      (nnheader-concat gnus-home-directory "authinfo.gpg")
      smtpmail-auth-credentials
      (nnheader-concat gnus-home-directory "authinfo.gpg")
      smtpmail-starttls-credentials
      (nnheader-concat gnus-home-directory "authinfo.gpg"))
```

My `autinfo.gpg':

```
machine imap-mail.outlook.com login email@outlook.com
password mypass port 993
machine smtp-mail.outlook.com login email@outlook.com
password mypass port 587
```

Error message:

If smtpmail-stream-type to `starttls', it looks:

---------- smtpmail-stream-type starttls --------
Sending via mail...
gnutls.c: [0] (Emacs) fatal error: The TLS connection was
non-properly terminated.  550 5.7.3 Requested action aborted; user
not authenticated smtpmail-send-command: Process smtpmail not
running Quit
--------------------------------------------------

If smtpmail-stream-type to `ssl', it looks:

------ smtpmail-stream-type ssl ----------------
Sending via mail...
gnutls.c: [0] (Emacs) fatal error: An unexpected TLS
packet was received.  gnutls.el: (err=[-15] An unexpected TLS
packet was received.) boot: (:priority NORMAL :hostname
smtp-mail.outlook.com :loglevel 0 :min-prime-bits 256 :trustfiles
(/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil
:verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process smtpmail>, -15 Quit
-------------------------------------------------

From the outlook.com help menu, I can find:

```
Server name: smtp-mail.outlook.com
Port: 587
Encryption method: TLS
```


So could any guy help?
-- 

Hello, world!

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

end of thread, other threads:[~2016-07-01  5:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15  5:49 smtp outlook.com Zaam Wu
2016-02-15  8:10 ` Lars Ingebrigtsen
2016-02-15  9:00   ` Zaam Wu
2016-02-15  9:07     ` Lars Ingebrigtsen
2016-02-15  9:30       ` Zaam Wu
2016-02-15  9:46       ` Zaam Wu
2016-06-30  7:37         ` xiewensheng
2016-06-30 20:28           ` Dmitry Alexandrov
     [not found]           ` <mailman.344.1467318506.26859.info-gnus-english@gnu.org>
2016-07-01  5:32             ` xiewensheng

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