Gnus development mailing list
 help / color / mirror / Atom feed
* how to configure smtp of ms live mail for gnus
@ 2014-03-09  8:38 Easior Lars
  2014-03-09 15:31 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Easior Lars @ 2014-03-09  8:38 UTC (permalink / raw)
  To: ding

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
   |       smtpmail-smtp-service 25
   |       smtpmail-smtp-user xxxx)
   `-----------------------------------------

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

emacs is suspended long time untill c-g is excuted.

what can I do in order to use smtp.live.com to send messages?



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




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

* Re: how to configure smtp of ms live mail for gnus
  2014-03-09  8:38 how to configure smtp of ms live mail for gnus Easior Lars
@ 2014-03-09 15:31 ` Lars Ingebrigtsen
  2014-03-10  4:11   ` Easior Lars
  2014-03-15  5:46   ` Easior Lars
  0 siblings, 2 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2014-03-09 15:31 UTC (permalink / raw)
  To: ding

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

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

You shouldn't really need to set anything.  Emacs will ask you what
server to use when you send messages.  (That is, in Emacs 24.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



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

* Re: how to configure smtp of ms live mail for gnus
  2014-03-09 15:31 ` Lars Ingebrigtsen
@ 2014-03-10  4:11   ` Easior Lars
  2014-03-15  5:46   ` Easior Lars
  1 sibling, 0 replies; 5+ messages in thread
From: Easior Lars @ 2014-03-10  4:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding

>>>>> "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...
Thanks, you are right.
    >>  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.)
Do you mean whether multiple smtp functions were impletmented in
Emacs 24? I want to switch among some smtp server in order to send
messages to different mailing lists by different email address.
    LI> -- 
    LI> (domestic pets only, the antidote for overdose, milk.)
    LI> bloggy blog http://lars.ingebrigtsen.no/

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




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

* Re: how to configure smtp of ms live mail for gnus
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Easior Lars @ 2014-03-15  5:46 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding

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

It's necessary to me since I have to switch among multiple smtp
server before sending mails. After I try it again today, backtrace
give me the following information:
------------------------x-----------------------x----------------------------
 entered--Lisp error: (gnutls-error #<process smtpmail> -15)
  signal(gnutls-error (#<process smtpmail> -15))
  gnutls-negotiate(:process #<process smtpmail> :type gnutls-x509pki :hostname "smtp.live.com")
  open-gnutls-stream("smtpmail" #<buffer *trace of SMTP session to smtp.live.com*> "smtp.live.com" 587)
  network-stream-open-tls("smtpmail" #<buffer *trace of SMTP session to smtp.live.com*> "smtp.live.com" 587 (:type ssl :return-list t :capability-command "EHLO Arcadia\n" :end-of-command "^[0-9]+ .*\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #[(capabilities) "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS\n"] 3] :client-certificate t :use-starttls-if-possible t))
  open-network-stream("smtpmail" #<buffer *trace of SMTP session to smtp.live.com*> "smtp.live.com" 587 :type ssl :return-list t :capability-command "EHLO Arcadia\n" :end-of-command "^[0-9]+ .*\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #[(capabilities) "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS\n"] 3] :client-certificate t :use-starttls-if-possible t)
  byte-code("\306\307\310\b\"!r	q\210\311\312 \210)\313\211\x1c\314\315	\b\316@\317\311\320\307\321\322 \"\323\324\325\326\327\311\330\331\332\311\333\311&\x16A*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	q\210\350\351\211\"\210\352\353!\210e+\336AA\354\"E\344E!\211D\203\261\x0eD\346Y\203\276\355B\307\356\322 \"\"\210\2028\357\360\361\336AA\354\"\362\"\"\363F\211G\2037\x0eG@F\364 pHI\365\216\366J!\210\367\370\361F\371\363O\372\"\"+\211KG\373U\203\x01K@KK\203-\x0eK:\203\x01K@\202\x01K\374>\203\"\x0eKLBL\202-\x0eM\203-\375\376K\"\210)GA\211G\204\323**\377BL\b\x0eN%O\201W\x0eL\235\204W\201X\x0eL\235\203a\355B\307\201Y!\"\210P\203\202\201Z\x0eL\235\204x\201[\x0eL\235\203\202\355B\307\201\\!\"\210\201]\x0eL\235\203\225\355B\307\201^!\"\210\201_\x0eL\235\204\252\201`\201_\x0eL\"\203\302\307\201arQq\210deZ\201bed\"\\)\"\202\303\360\201c\x0eL\235\203\320\360\202\321\360RS\201d\x0eB\307\201e\x0eTSR$\"\210\201f\201g\x0eB!\211A!\2048\x0eO\203.\x0eN\204.\x0eA@\201h=\203.\363\201i\201j\217\210\201k\x0eB!\210\363B\334\335\201l\x0eUQ\311#\"\210\2028\334\335\201m\x0eA!\"\210*\201n\211VU8\203\315\201d\x0eB\307\201o\201p\x0eVU8!\"\"\210\201f\201g\x0eB!\211A!\204\304\x0eO\203\272\x0eN\204\272\x0eA@\250\203\272\x0eA@\201qY\203\272\x0eA@\201rX\203\272\201d\x0eB\201s\"\210\201g\x0eB!\210\201k\x0eB!\210\363B\334\335\201l\x0eUQ\311#\"\210\202\304\334\335\201m\x0eA!\"\210VT\211V\202?)\355B\201t\"\210\201u\x0eBQ\"\210\355B\201v\"\210)\363\207" [host process-buffer buffer-undo-list coding-system-for-write coding-system-for-read port get-buffer-create format "*trace of SMTP session to %s*" t erase-buffer binary open-network-stream "smtpmail" :type :return-list :capability-command "EHLO %s\n" smtpmail-fqdn :end-of-command "^[0-9]+ .*\n" :success "^2.*\n" :always-query-capabilities :starttls-function #[(capabilities) "\301\302\b\"\205\b\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS\n"] 3] :client-certificate :use-starttls-if-possible throw done plist-get :error "Unable to contact server" set-process-filter smtpmail-process-filter :greeting smtpmail-response-code "No greeting: %s" 400 "Connection not allowed: %s" set-buffer-process-coding-system raw-text-unix make-local-variable smtpmail-read-point :capabilities smtpmail-command-or-throw "HELO %s" delete "" split-string ...] 24)
  ad-Orig-smtpmail-via-smtp(("xxxx@gmail.com") #<buffer  smtpmail temp> nil)
  smtpmail-via-smtp(("xxxx@gmail.com") #<buffer  smtpmail temp>)
  smtpmail-send-it()
  message-multi-smtp-send-mail()
  gnus-agent-send-mail()
  message-send-mail(nil)
  message-send-via-mail(nil)
  message-send(nil)
  message-send-and-exit(nil)
  call-interactively(message-send-and-exit nil nil)
------------------------x-----------------------x----------------------------

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/

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




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

* Re: how to configure smtp of ms live mail for gnus
  2014-03-15  5:46   ` Easior Lars
@ 2014-03-25  8:16     ` Easior Lars
  0 siblings, 0 replies; 5+ messages in thread
From: Easior Lars @ 2014-03-25  8:16 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding

>>>>> "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




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

end of thread, other threads:[~2014-03-25  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-09  8:38 how to configure smtp of ms live mail for gnus 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 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).