From: John Owens <owens.aa@ece.ucdavis.edu>
Subject: Re: smtpmail and starttls
Date: Thu, 13 Nov 2003 18:18:44 -0800 [thread overview]
Message-ID: <xyqn0azsnej.fsf@samba2.ece.ucdavis.edu> (raw)
In-Reply-To: <ilud6c3skq8.fsf@latte.josefsson.org>
Simon Josefsson <jas@extundo.com> writes:
> John Owens <owens.aa@ece.ucdavis.edu> writes:
>> Simon Josefsson <jas@extundo.com> writes:
>>> John Owens <owens.aa@ece.ucdavis.edu> 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]: #<buffer *trace of SMTP session to strat.ece.ucdavis.ude*>
[9]: "strat.ece.ucdavis.ude"
[10]: "smtp"
Then the following:
File error: "make client process failed", "connection refused", :name, "SMTP", :buffer, #<buffer *trace of SMTP session to strat.ece.ucdavis.ude*>, :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
next prev parent reply other threads:[~2003-11-14 2:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-30 13:58 bogofilter config Jake Colman
2003-10-30 15:23 ` Ted Zlatanov
2003-10-30 15:35 ` Jake Colman
2003-10-30 15:40 ` Jake Colman
2003-10-30 15:54 ` Ted Zlatanov
2003-10-30 16:56 ` Jake Colman
2003-10-31 16:30 ` Ted Zlatanov
2003-10-31 17:32 ` Jake Colman
2003-10-31 18:51 ` Ted Zlatanov
2003-10-31 19:51 ` Jake Colman
2003-11-01 3:08 ` Ted Zlatanov
2003-11-03 14:46 ` Jake Colman
2003-11-07 6:39 ` smtpmail and starttls John Owens
2003-11-07 16:50 ` Simon Josefsson
2003-11-07 17:33 ` John Owens
2003-11-08 1:38 ` Simon Josefsson
2003-11-14 2:18 ` John Owens [this message]
2003-11-07 20:12 ` John Owens
2005-04-28 14:37 Andrew Raines
2005-04-29 8:35 ` Simon Josefsson
2005-04-29 15:12 ` Andrew Raines
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=xyqn0azsnej.fsf@samba2.ece.ucdavis.edu \
--to=owens.aa@ece.ucdavis.edu \
/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).