all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Gnus: Process SMTP not running
@ 2014-05-17  0:18 gnustestingacc
  2014-05-17  0:40 ` gnustestingacc
  0 siblings, 1 reply; 3+ messages in thread
From: gnustestingacc @ 2014-05-17  0:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Leute,

ich moechte gnus als mail reader und client benutzen, habe aber noch keine Erfahrung mit dem Programm an sich. Nun hab ich mich durch einige Tutos gelesen und eine Konfiguration gefunden, die mir zumindest das Lesen von Mails ermoeglich (siehe .gnus im Codeblock unten). Leider macht das Versenden von Mails noch Probleme. Die Fehlermeldung im Minibuffer von emacs ist "Process SMTP not running". Da habe ich versucht mit Hilfe von diversen Suchmaschinen eine Loesung zu finden. Ich scheine zwar nicht der einzige mit diesem Problem zu sein, allerdings konnte ich keine wirkliche Loesung finden. Ich habe extra einen Account bei gmail eingerichtet um die ganze Geschichte zu testen, weil sich sehr viele Tutos auf gmail beziehen.

vollstaendige .gnus: (ich benutze auch eine .authinfo fuer die Passwoerter)
===========================================
    (setq imap-log t)

    (setq user-mail-address "g...c@gmail.com")
    (setq user-full-name "gnus Tester")

    (setq gnus-select-method
          '(nnimap "gmail"
              (nnimap-address "imap.gmail.com")
              (nnimap-server-port 993)
              (nnimap-stream ssl)))

    (setq message-send-mail-function 'smtpmail-send-it
          smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
          smtpmail-auth-credentials '(("smtp.gmail.com" 587 "g...c@gmail.com" nil))
          smtpmail-default-smtp-server "smtp.gmail.com"
          smtpmail-smtp-server "smtp.gmail.com"
          smtpmail-smtp-service 587
          gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")


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

Nachdem ich also auf dem leichten Weg (Suche => Loesung) nichts gefunden habe, habe ich mir die Geschichte mal naeher angeguckt. Mein 'trace of SMTP session to smtp.gmail.com' buffer sieht so aus:

===========================================
    Process SMTP exited abnormally with code 1
    EHLO snow.tower
    250-mx.google.com at your service, [31.17.107.137]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250 CHUNKIEHLO snow.tower
    QUIT
===========================================

dort ist mir natuerlich aufgefallen, dass der SMTP process scheinbar versucht sich beim Server mit snow.tower anzumelden, was ueberraschender Weise nicht klappt *IRONIE!* Dazu direkt mal die erste Frage: Wie kann ich gnus konfigurieren da andere hostnames/domains zu verwenden?

Im Endeffekt glaube ich allerdings, dass das eingentliche Problem hier liegt: (Messages Buffer)
===========================================
    Sending...
    Sending via mail...
    Opening STARTTLS connection to `smtp.gmail.com:587'...done
    STARTTLS negotiation failed: NG
    STARTTLS
    220 2.0.0 Ready to start TLS
    *** Starting TLS handshake
    - Certificate type: X.509
    - Got a certificate list of 3 certificates.
    - Certificate[0] info:
     - subject `C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com', issuer `C=US,O=Google Inc,CN=Google Internet Authority G2', RSA key 2048 bits, signed using RSA-SHA1, activated `2013-09-10 07:54:47 UTC', expires `2014-09-10 07:54:47 UTC', SHA-1 fingerprint `1075e18cdf93153ba18fcdfed31179d5164377bc'
       Public Key ID:
          c947268d075afbbe7793e51b17d76f0ddbe65324
       Public key's random art:
          +--[ RSA 2048]----+
          |        o        |
          |       o =       |
          |      . + =      |
          |       . B    E o|
          |        S o   .+o|
          |         o     +B|
          |          .   .=O|
          |           .. +=+|
          |          .. . o+|
          +-----------------+

    - Certificate[1] info:
     - subject `C=US,O=Google Inc,CN=Google Internet Authority G2', issuer `C=US,O=GeoTrust Inc.,CN=GeoTrust Global CA', RSA key 2048 bits, signed using RSA-SHA1, activated `2013-04-05 15:15:55 UTC', expires `2015-04-04 15:15:55 UTC', SHA-1 fingerprint `d83c1a7f4d0446bb2081b81a1670f8183451ca24'
    - Certificate[2] info:
     - subject `C=US,O=GeoTrust Inc.,CN=GeoTrust Global CA', issuer `C=US,O=Equifax,OU=Equifax Secure Certificate Authority', RSA key 2048 bits, signed using RSA-SHA1, activated `2002-05-21 04:00:00 UTC', expires `2018-08-21 04:00:00 UTC', SHA-1 fingerprint `7359755c6df9a0abc3060bce369564c8ec4542a3'
    - Status: The certificate is NOT trusted. The certificate issuer is unknown.
    *** PKI verification of server certificate failed...
    *** Fatal error: Error in the certificate.
    *** Handshake has failed

    smtpmail-send-command: Process SMTP not running
===========================================

Offensichtlich hat die Verbindung nicht hingehauen, der Process bricht ab und der smtpmail-send-command findet keinen laufenden Process. Was mich daran wundert ist nun, dass die Zertifikate nicht akzeptiert wurden. Ich meine, die kommen doch offensichtlich vom gmail-server und ich gehe in meiner Naivitaet einfach mal davon aus, dass die Menschen bei google es gebacken bekommen dort gueltige Zertifikate zu installieren.

danke fuer eure Hilfe

PS: Ich verwende als OS debian sid, emacs in der Version 23.4.1, und habe gnutls-bin installiert.


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

* Re: Gnus: Process SMTP not running
  2014-05-17  0:18 Gnus: Process SMTP not running gnustestingacc
@ 2014-05-17  0:40 ` gnustestingacc
  2014-05-17 16:50   ` W. Greenhouse
  0 siblings, 1 reply; 3+ messages in thread
From: gnustestingacc @ 2014-05-17  0:40 UTC (permalink / raw)
  To: help-gnu-emacs

English Version:
Hi Guys,

I'd like to use gnus as mail reader and client, but unfortunately I have no experience with it. With help of some tutorials I managed to get it running and I am able to read my mails. For this I used the configuration as shown in the code block below, where I posted my whole .gnus file. So reading is fine, but sending does not work. Whenever I try to send a mail I get 'Process SMTP is not running'. 
 
complete.gnus: (I use an.authinfo file for the passwords)
  ===========================================
      (setq imap-log t)
 
 
 
     (setq user-mail-address "g...c@gmail.com")
 
     (setq user-full-name "gnus Tester")
 
 
 
     (setq gnus-select-method
 
           '(nnimap "gmail"
 
               (nnimap-address "imap.gmail.com")
 
               (nnimap-server-port 993)
 
               (nnimap-stream ssl)))
 
 
 
     (setq message-send-mail-function 'smtpmail-send-it
 
           smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
 
           smtpmail-auth-credentials '(("smtp.gmail.com" 587 "g...c@gmail.com" nil))
 
           smtpmail-default-smtp-server "smtp.gmail.com"
 
           smtpmail-smtp-server "smtp.gmail.com"
 
           smtpmail-smtp-service 587
 
           gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
 
 
 
 
 
     (setq starttls-use-gnutls t)
 
         (setq starttls-gnutls-program "gnutls-cli")
 
         (setq starttls-extra-arguments nil)
  ===========================================
 
Starting my search for a solution with this error message got me to the point, that on the one hand other people have the same issue, but on the other hand apparently nobody has a real solution. That's why I had a closer look at the 'trace of SMTP session to smtp.gmail.com' buffer:
 
 ===========================================
      Process SMTP exited abnormally with code 1
 
     EHLO snow.tower
 
     250-mx.google.com at your service, [31.17.107.137]
 
     250-SIZE 35882577
 
     250-8BITMIME
 
     250-STARTTLS
 
     250-ENHANCEDSTATUSCODES
 
     250 CHUNKIEHLO snow.tower
 
     QUIT
  ===========================================
 
 Noticeable is that my computer tries to access the SMTP server as snow.tower (my local hostname and domain), which fails of course. That is also my first question: How can I configure gnus to use another hostname and domain?
 
Anyway, I believe the main problem lays in here: (Messages buffer)
 
 ===========================================
      Sending...
 
     Sending via mail...
 
     Opening STARTTLS connection to `smtp.gmail.com:587'...done
 
     STARTTLS negotiation failed: NG
 
     STARTTLS
 
     220 2.0.0 Ready to start TLS
 
     *** Starting TLS handshake
 
     - Certificate type: X.509
 
     - Got a certificate list of 3 certificates.
 
     - Certificate[0] info:
 
      - subject `C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com', issuer `C=US,O=Google Inc,CN=Google Internet Authority G2', RSA key 2048 bits, signed using RSA-SHA1, activated `2013-09-10 07:54:47 UTC', expires `2014-09-10 07:54:47 UTC', SHA-1 fingerprint `1075e18cdf93153ba18fcdfed31179d5164377bc'
 
        Public Key ID:
 
           c947268d075afbbe7793e51b17d76f0ddbe65324
 
        Public key's random art:
 
           +--[ RSA 2048]----+
 
           |        o        |
 
           |       o =       |
 
           |      . + =      |
 
           |       . B    E o|
 
           |        S o   .+o|
 
           |         o     +B|
 
           |          .   .=O|
 
           |           .. +=+|
 
           |          .. . o+|
 
           +-----------------+
 
 
 
     - Certificate[1] info:
 
      - subject `C=US,O=Google Inc,CN=Google Internet Authority G2', issuer `C=US,O=GeoTrust Inc.,CN=GeoTrust Global CA', RSA key 2048 bits, signed using RSA-SHA1, activated `2013-04-05 15:15:55 UTC', expires `2015-04-04 15:15:55 UTC', SHA-1 fingerprint `d83c1a7f4d0446bb2081b81a1670f8183451ca24'
 
     - Certificate[2] info:
 
      - subject `C=US,O=GeoTrust Inc.,CN=GeoTrust Global CA', issuer `C=US,O=Equifax,OU=Equifax Secure Certificate Authority', RSA key 2048 bits, signed using RSA-SHA1, activated `2002-05-21 04:00:00 UTC', expires `2018-08-21 04:00:00 UTC', SHA-1 fingerprint `7359755c6df9a0abc3060bce369564c8ec4542a3'
 
     - Status: The certificate is NOT trusted. The certificate issuer is unknown.
 
     *** PKI verification of server certificate failed...
 
     *** Fatal error: Error in the certificate.
 
     *** Handshake has failed
 
 
 
     smtpmail-send-command: Process SMTP not running
  ===========================================
 
 Obviously the connection quit, an the SMTP process does not find a connection. I wonder why the certificates are not accepted by my (?) system. I would believe that the certificates are valid, because they are from google and I think these guys are capable of creating valid certificates. 
 
 thx for your help
 
 
 
PS: I use debian sid, emacs version 23.4.1, and have gnutls-bin installed.



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

* Re: Gnus: Process SMTP not running
  2014-05-17  0:40 ` gnustestingacc
@ 2014-05-17 16:50   ` W. Greenhouse
  0 siblings, 0 replies; 3+ messages in thread
From: W. Greenhouse @ 2014-05-17 16:50 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

gnustestingacc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes:

>  Obviously the connection quit, an the SMTP process does not find a
> connection. I wonder why the certificates are not accepted by my (?)
> system. I would believe that the certificates are valid, because they
> are from google and I think these guys are capable of creating valid
> certificates.
>  
>  thx for your help
>  
>  
>  
> PS: I use debian sid, emacs version 23.4.1, and have gnutls-bin
> installed.

Try port 465 rather than 587 for the SMTP connection, e.g.

(setq smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-stream-type 'ssl
      smtpmail-smtp-service 465)

Perhaps you need a certificate update for your system--or an update in
general; the current Emacs for sid is 24.3 and not 23.4, which is the
Emacs in wheezy. I would also recommend attempting to verify this
certificate on another system, just to be safe.
      
-- 
Reply to list only, please.
Off-list replies will be filtered and deleted.




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

end of thread, other threads:[~2014-05-17 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-17  0:18 Gnus: Process SMTP not running gnustestingacc
2014-05-17  0:40 ` gnustestingacc
2014-05-17 16:50   ` W. Greenhouse

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.