Re: smtp outlook.com
On Monday, February 15, 2016 at 5:50:01 PM UTC+8, Zaam Wu wrote: > Lars Ingebrigtsenwrites: > > > Zaam Wu writes: > > > >> LU437-SMTP105.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: > >> 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:54:39 -0800 > >> > >> Process smtpmail connection broken by remote peer > > > > So it connects fine, but then hangs up. So it probably doesn't want to > > talk to you? Do you have the proper login credentials? > > Manually run gnutls-cli on terminal: > > ```bash > $ gnutls-cli --insecure -p 587 smtp-mail.outlook.com > Processed 0 CA certificate(s). > Resolving 'smtp-mail.outlook.com'... > Connecting to '65.55.163.152:587'... > |<1>| Received record packet of unknown type 50 > *** Fatal error: An unexpected TLS packet was received. > *** Handshake has failed > GnuTLS error: An unexpected TLS packet was received. > ``` > -- > 你好! > Hello, world! Hi, I have similar problem. Fetching imap email is ok, but sending smtp email is not. I am working under windows + Emacs/gnus + gnutls. Have you solved the problem? best regards, wxie ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: smtp outlook.com
Lars Ingebrigtsenwrites: > Zaam Wu writes: > >> LU437-SMTP105.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: >> 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:54:39 -0800 >> >> Process smtpmail connection broken by remote peer > > So it connects fine, but then hangs up. So it probably doesn't want to > talk to you? Do you have the proper login credentials? I am sure my login credentials are right. This is my authinfo.gpg: ``` machine imap-mail.outlook.com login my-m...@outlook.com password my-pass port 993 machine smtp-mail.outlook.com login my-mailoutlook.com password my-pass port 587 ``` After reading this post: http://stackoverflow.com/a/22898098. I add a function to gnus.el: ``` (defun gnutls-available-p () "Function redefined in order not to use built-in GnuTLS support" nil) ``` Now the sending log from *Message* buffer: ``` Sending via mail... Opening TLS connection to `smtp-mail.outlook.com'... Opening TLS connection with `gnutls-cli --insecure -p 587 smtp-mail.outlook.com'...failed Opening TLS connection with `gnutls-cli --insecure -p 587 smtp-mail.outlook.com --protocols ssl3'...failed Opening TLS connection with `openssl s_client -connect smtp-mail.outlook.com:587 -no_ssl2 -ign_eof'...done Opening TLS connection to `smtp-mail.outlook.com'...done network-stream-command: Process smtpmail not running Decrypting /home/zachary/.emacs.d/gnus/authinfo.gpg...done ``` And the trace buffer: ``` Process smtpmail exited abnormally with code 1 ``` -- 你好! Hello, world! ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: smtp outlook.com
Lars Ingebrigtsenwrites: > Zaam Wu writes: > >> smtpmail-stream-type 'starttls ;; or `ssl' > > It's not a STARTTLS server, so it should be 'tls. >From the help doc, it should be 'ssh. ```Help doc: This may be either nil (possibly upgraded to STARTTLS if possible), or `starttls' (refuse to send if STARTTLS isn't available), or `plain' (never use STARTTLS), or `ssl' (to use TLS/SSL). ``` > >> 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: #, -15 Quit > > I think this just means that the server closed the connection. > Probably. Connecting to the server works fine for me: > > LU436-SMTP207.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: > 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:09:39 -0800 Mine is: LU437-SMTP105.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:54:39 -0800 Process smtpmail connection broken by remote peer -- Hello, world! ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
smtp outlook.com
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 em...@outlook.com password mypass port 993 machine smtp-mail.outlook.com login em...@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: #, -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! ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: smtp outlook.com
Zaam Wuwrites: > LU437-SMTP105.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: > 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:54:39 -0800 > > Process smtpmail connection broken by remote peer So it connects fine, but then hangs up. So it probably doesn't want to talk to you? Do you have the proper login credentials? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: smtp outlook.com
Zaam Wuwrites: > smtpmail-stream-type 'starttls ;; or `ssl' It's not a STARTTLS server, so it should be 'tls. > 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: #, -15 Quit I think this just means that the server closed the connection. Probably. Connecting to the server works fine for me: LU436-SMTP207.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Mon, 15 Feb 2016 00:09:39 -0800 -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english