From: Easior Lars <easior@126.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ding@gnus.org
Subject: Re: how to configure smtp of ms live mail for gnus
Date: Tue, 25 Mar 2014 16:16:46 +0800 [thread overview]
Message-ID: <87vbv2r8up.fsf@126.com> (raw)
In-Reply-To: <87a9cs580z.fsf@126.com> (Easior Lars's message of "Sat, 15 Mar 2014 13:46:04 +0800")
>>>>> "EL" == Easior Lars <easior@126.com> writes:
I figure out it. just do the following
,-----------------------------------------
| (setq smtpmail-stream-type 'starttls
| smtpmail-smtp-server "smtp.live.com"
| smtpmail-smtp-service 587
| smtpmail-smtp-user "xxxx@live.com")
`-----------------------------------------
and add the below line to ~/.authinfo
,--------------------------------------------------------------------
| machine smtp.live.com login xxxx@live.com password xxxxxxx port 587
`--------------------------------------------------------------------
>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
LI> Easior Lars <easior@126.com> writes:
>>> hi, guys!
>>>
>>> I have a problem in setting up the smtp configuration of microsoft
>>> Live mail in gnus. After I use the following
>>>
>>> ,-----------------------------------------
>>> | (setq smtpmail-stream-type 'plain
>>> | smtpmail-smtp-server smtp.live.com
LI> That should be a string...
>>> it report error as an unexpect tls packect when message is sent by
>>> live smtp server. Therefore, I change the configuration into
>>>
>>> ,-----------------------------------------
>>> | (setq smtpmail-stream-type 'ssl
>>> | smtpmail-smtp-server smtp.live.com
>>> | smtpmail-smtp-service 485 ; or 587
>>> | smtpmail-smtp-user xxxx)
>>> `-----------------------------------------
LI> You shouldn't really need to set anything. Emacs will ask you what
LI> server to use when you send messages. (That is, in Emacs 24.)
EL> It's necessary to me since I have to switch among multiple smtp
EL> server before sending mails. After I try it again today, backtrace
EL> give me the following information:
EL> entered--Lisp error: (gnutls-error #<process smtpmail> -15)
EL> signal(gnutls-error (#<process smtpmail> -15))
EL> gnutls-negotiate(:process #<process smtpmail> :type gnutls-x509pki :hostname
EL> "smtp.live.com")
EL> open-gnutls-stream("smtpmail" #<buffer *trace of SMTP session to
EL> smtp.live.com*> "smtp.live.com" 587)
EL> network-stream-open-tls("smtpmail" #<buffer *trace of SMTP session to
EL> smtp.live.com*> "smtp.live.com" 587 (:type ssl :return-list t :capability-command
EL> "EHLO Arcadia\n" :end-of-command "^[0-9]+ .*\n" :success "^2.*\n"
EL> :always-query-capabilities t :starttls-function #[(capabilities)
EL> "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS"
EL> "STARTTLS\n"] 3] :client-certificate t :use-starttls-if-possible t))
EL> open-network-stream("smtpmail" #<buffer *trace of SMTP session to
EL> smtp.live.com*> "smtp.live.com" 587 :type ssl :return-list t :capability-command
EL> "EHLO Arcadia\n" :end-of-command "^[0-9]+ .*\n" :success "^2.*\n"
EL> :always-query-capabilities t :starttls-function #[(capabilities)
EL> "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS"
EL> "STARTTLS\n"] 3] :client-certificate t :use-starttls-if-possible t)
EL> byte-code("\306\307\310\b\"!r q\210\311\312 \210)\313\211\314\315
EL> \b\316@\317\311\320\307\321\322
EL> \"\323\324\325\326\327\311\330\331\332\311\333\311&A*A@\211B\204V\334\335\336AA\337\"\203S\336AA\337\"\202T\340\"\210\341B\342\"\210\336AA\343\"C\344C!\211D\204w\334\335\307\345C\"\"\210D\346Y\203\207\334\335\307\347C\"\"\210*r
EL> q\210\350\351\211\"\210\352\353!\210e+\336AA\354\"E\344E!\211D\203\261D\346Y\203\276\355B\307\356\322
EL> \"\"\210\2028\357\360\361\336AA\354\"\362\"\"\363F\211G\2037G@F\364
EL> pHI\365\216\366J!\210\367\370\361F\371\363O\372\"\"+\211KG\373U\203K@KK\203-K:\203K@\202K\374>\203\"KLBL\202-M\203-\375\376K\"\210)GA\211G\204\323**\377BL\bN%O\201WL\235\204W\201XL\235\203a\355B\307\201Y!\"\210P\203\202\201ZL\235\204x\201[L\235\203\202\355B\307\201\\!\"\210\201]L\235\203\225\355B\307\201^!\"\210\201_L\235\204\252\201`\201_L\"\203\302\307\201arQq\210deZ\201bed\"\\)\"\202\303\360\201cL\235\203\320\360\202\321\360RS\201dB\307\201eTSR$\"\210\201f\201gB!\211A!\2048O\203.N\204.A@\201h=\203.\363\201i\201j\217\210\201kB!\210\363B\334\335\201lUQ\311#\"\210\2028\334\335\201mA!\"\210*\201n\211VU8\203\315\201dB\307\201o\201pVU8!\"\"\210\201f\201gB!\211A!\204\304O\203\272N\204\272A@\250\203\272A@\201qY\203\272A@\201rX\203\272\201dB\201s\"\210\201gB!\210\201kB!\210\363B\334\335\201lUQ\311#\"\210\202\304\334\335\201mA!\"\210VT\211V\202?)\355B\201t\"\210\201uBQ\"\210\355B\201v\"\210)\363\207"
EL> [host process-buffer buffer-undo-list coding-system-for-write
EL> coding-system-for-read port get-buffer-create format "*trace of SMTP session to
EL> %s*" t erase-buffer binary open-network-stream "smtpmail" :type :return-list
EL> :capability-command "EHLO %s\n" smtpmail-fqdn :end-of-command "^[0-9]+ .*\n"
EL> :success "^2.*\n" :always-query-capabilities :starttls-function #[(capabilities)
EL> "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS"
EL> "STARTTLS\n"] 3] :client-certificate :use-starttls-if-possible throw done
EL> plist-get :error "Unable to contact server" set-process-filter
EL> smtpmail-process-filter :greeting smtpmail-response-code "No greeting: %s" 400
EL> "Connection not allowed: %s" set-buffer-process-coding-system raw-text-unix
EL> make-local-variable smtpmail-read-point :capabilities smtpmail-command-or-throw
EL> "HELO %s" delete "" split-string ...] 24)
EL> ad-Orig-smtpmail-via-smtp(("xxxx@gmail.com") #<buffer smtpmail temp> nil)
EL> smtpmail-via-smtp(("xxxx@gmail.com") #<buffer smtpmail temp>)
EL> smtpmail-send-it()
EL> message-multi-smtp-send-mail()
EL> gnus-agent-send-mail()
EL> message-send-mail(nil)
EL> message-send-via-mail(nil)
EL> message-send(nil)
EL> message-send-and-exit(nil)
EL> call-interactively(message-send-and-exit nil nil)
EL> Can anyone figure out what happened in emacs?
LI> --
LI> (domestic pets only, the antidote for overdose, milk.)
LI> bloggy blog http://lars.ingebrigtsen.no/
EL> --
EL> Best regards,
EL> Easior
EL> -----
EL> Ich bin von heute und ehedam, aber etwas ist in mir, das ist vor
EL> morgen und bermorgen und einstmal.
EL> Friedrich Wilhelm Nietzsche
--
Best regards,
Easior
-----
Ich bin von heute und ehedam, aber etwas ist in mir, das ist vor
morgen und übermorgen und einstmal.
Friedrich Wilhelm Nietzsche
prev parent reply other threads:[~2014-03-25 8:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-09 8:38 Easior Lars
2014-03-09 15:31 ` Lars Ingebrigtsen
2014-03-10 4:11 ` Easior Lars
2014-03-15 5:46 ` Easior Lars
2014-03-25 8:16 ` Easior Lars [this message]
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=87vbv2r8up.fsf@126.com \
--to=easior@126.com \
--cc=ding@gnus.org \
--cc=larsi@gnus.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).