From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54811 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail and starttls Date: Thu, 13 Nov 2003 18:18:44 -0800 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <76znfi25ez.fsf@newjersey.ppllc.com> <4n8yn2wxzq.fsf@lockgroove.bwh.harvard.edu> <763cdabuxg.fsf@newjersey.ppllc.com> <76y8v2ag3n.fsf@newjersey.ppllc.com> <4nr80uvhyr.fsf@lockgroove.bwh.harvard.edu> <76ad7i1x66.fsf@newjersey.ppllc.com> <4nvfq58j4c.fsf@lockgroove.bwh.harvard.edu> <76r80txqi0.fsf@newjersey.ppllc.com> <4nd6cd6y1g.fsf@lockgroove.bwh.harvard.edu> <76ism5xk20.fsf@newjersey.ppllc.com> <4n65i46b1l.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068776390 17932 80.91.224.253 (14 Nov 2003 02:19:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2003 02:19:50 +0000 (UTC) Original-X-From: ding-owner+M3351@lists.math.uh.edu Fri Nov 14 03:19:46 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AKTYo-0008HX-00 for ; Fri, 14 Nov 2003 03:19:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AKTY4-0007RR-00; Thu, 13 Nov 2003 20:19:00 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AKTXv-0007RJ-00 for ding@lists.math.uh.edu; Thu, 13 Nov 2003 20:18:51 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 274563A0026 for ; Thu, 13 Nov 2003 20:18:48 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AKTXq-0001Qr-00 for ; Fri, 14 Nov 2003 03:18:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AKTXp-0001Qj-00 for ; Fri, 14 Nov 2003 03:18:45 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AKTXp-0004dX-00 for ; Fri, 14 Nov 2003 03:18:45 +0100 Original-Lines: 73 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.4 (Portable Code, linux) Cancel-Lock: sha1:vQXEjPr1sC8ubj/wu06KhwqhuOU= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54811 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54811 Simon Josefsson writes: > John Owens writes: >> Simon Josefsson writes: >>> John Owens writes: >>> >>>> I am trying to get smtpmail with queueing working with starttls. This >>>> is on OS X 10.3, for the record. >>> >>> Which CVS revision of smtpmail.el? Here's what I use, and I think it >>> works. >> >> Just got the latest from CVS (looks like 1.61). Same behavior. >> >> What additional information can I provide to help debug this further? > > Using edebug to step through `smtpmail-open-stream' would give the > best information. (See trouble shooting section of Gnus manual.) OK, here's what's being debugged (again I'm changing edu to ude below): (I'm marking all the places edebug stops with a [#] and the values emitted there below the elisp function.) (defun smtpmail-open-stream (process-buffer host port) (let ((cred (smtpmail-find-credentials smtpmail-starttls-credentials [1] host [2] port [3])[4])) (if (null (and cred [5] (condition-case () (progn (require 'starttls) (call-process starttls-program)) (error nil)))[6])[7] ;; The normal case. (open-network-stream "SMTP" process-buffer [8] host [9] port [10]) (let* ((cred-key (smtpmail-cred-key cred)) (cred-cert (smtpmail-cred-cert cred)) (starttls-extra-args (when (and (stringp cred-key) (stringp cred-cert) (file-regular-p (setq cred-key (expand-file-name cred-key))) (file-regular-p (setq cred-cert (expand-file-name cred-cert)))) (list "--key-file" cred-key "--cert-file" cred-cert)))) (starttls-open-stream "SMTP" process-buffer host port))))) [1]: (("strat.ece.ucdavis.ude" 587 "" "")) [2]: "strat.ece.ucdavis.ude" [3]: "smtp" [4]: nil [5]: nil [6]: nil [7]: t [8]: # [9]: "strat.ece.ucdavis.ude" [10]: "smtp" Then the following: File error: "make client process failed", "connection refused", :name, "SMTP", :buffer, #, :host, "strat.ece.ucdavis.ude", :service, "smtp" Again, my settings are here: http://article.gmane.org/gmane.emacs.gnus.general/54720/match=owens but now I have "" instead of nil in the last two items in the list of smtpmail-starttls-credentials. JDO