From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.help Subject: Re: Mac OS Keychain with SMTP Date: Wed, 26 Nov 2014 15:56:26 +1000 Message-ID: References: <87ppcb4n65.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416984380 31859 80.91.229.3 (26 Nov 2014 06:46:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 06:46:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ted Zlatanov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 07:46:16 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtWMh-0003Qv-Fn for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 07:46:15 +0100 Original-Received: from localhost ([::1]:60673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtWMg-0004fw-IT for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 01:46:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtWMR-0004fj-18 for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 01:46:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtWMM-0005bs-0X for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 01:45:58 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtWML-0005bO-Oy for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 01:45:53 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D256120903; Wed, 26 Nov 2014 01:45:51 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 26 Nov 2014 01:45:51 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=tilk.co; h= x-sasl-enc:references:from:to:cc:subject:date:message-id :in-reply-to:mime-version:content-type; s=mesmtp; bh=b8riGAHrZPn 2RC8XTibRmyx2sqI=; b=HzgrHfx8JkIABsdbQf2Azt41n6DQdHlay2+uKg2NzH1 o2Qbw0zMrlJQgb8/XqT6x613AAjIv0lW4ZH8xYbuWKvUudcJWR0abSQhfIa3U7yW mXWGQg0+O0H9GASwF6Rf7HNQjx8EOpCuI9uvLgrvlAB8+TvR1GESB53L65lDYM9E = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:message-id:in-reply-to:mime-version:content-type; s= smtpout; bh=b8riGAHrZPn2RC8XTibRmyx2sqI=; b=pprTxCdVf7ScRrNLZupT TzE9xAs5CQCuSNOFugtUoWxnQvbk4lzg6SthtXqvGZE7D8CLJf95SHMO2c4KXqmX QATV9A4HJGmHe9e9kA2/enz2N46bDFXoh+N8qWS8ks57nCMdmuwHQmKM+HzJPres PiAXr6ehBDKvXddNt320A+8= X-Sasl-enc: VjRbaUsR8lUndDt+j8k6oq5ZpYsoNGoMdm+RnA864DL+ 1416984351 Original-Received: from Paul-Rankins-MacBook-Pro.local (unknown [202.0.190.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 664E36800C5; Wed, 26 Nov 2014 01:45:50 -0500 (EST) In-reply-to: <87ppcb4n65.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101208 Archived-At: Ted Zlatanov writes: > On Tue, 25 Nov 2014 15:15:15 +1000 Paul Rankin wrote: > > PR> I'd like to eschew an .authinfo file in favour of the Mac OS Keychain > PR> but can't seem to get it going. I keep receiving the error: > > PR> auth-source-macos-keychain-search: The MacOS Keychain auth-source > PR> backend doesn't support creation yet > > Please see Emacs bug#19074: Bug in auth-source.el's search of OS X > Keychain at https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-11/msg00805.html > > There's a patch there which I haven't been able to test. If you could, > please try it and let me know your experience (in the bug thread or > here). You will have to pre-create your security tokens in the Mac > OS X, since creating them through auth-source.el is not supported yet. I applied the patch and can now successfully use SMTP with a password without an .authinfo file. One further problem I had was that `auth-source.el` seems to always query `security` with a port number, and I hadn't added a port number to the keychain item in question, so, in Keychain Access.app Where: smtp://mail.example.com:465 fixed the problem. This is probably a silly question, but if I don't want to mess with my Emacs distribution, I should just put the patched version of `auth-source-macos-keychain-search-items` into my init file right? -- Paul W. Rankin http://www.paulwrankin.com Before printing this email please take a moment to think about the environment. Just stop and think about it. Think about the last time you were walking alone in a forest, how you felt at peace, how a wave of clarity seemed to overcome you and you had to stop and reevaluate your life, what you're doing with the limited time you have here. "Damn," you thought, "life is so precious. I should really be doing ______." Are you doing that now? Why not? Go on, pick up your computer and throw it out the window! It'll be great, like that scene from Network where everyone starts yelling "I'M MAD AS HELL AND I'M NOT GOING TO TAKE THIS ANY MORE." That'll be you, but it will be real. Now's your moment.