From: Zaam Wu <zaamwu@outlook.com>
To: info-gnus-english@gnu.org
Subject: smtp outlook.com
Date: Mon, 15 Feb 2016 13:49:15 +0800 [thread overview]
Message-ID: <871t8efrqc.fsf@zhtux.jiantu.boxes> (raw)
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!
next reply other threads:[~2016-02-15 5:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 5:49 Zaam Wu [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871t8efrqc.fsf@zhtux.jiantu.boxes \
--to=zaamwu@outlook.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).