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: Mac OS Keychain with SMTP Date: Tue, 25 Nov 2014 15:15:15 +1000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416892564 30448 80.91.229.3 (25 Nov 2014 05:16:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 05:16:04 +0000 (UTC) To: "help-gnu-emacs\@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 06:15:55 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 1Xt8Tg-0004r7-0U for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 06:15:52 +0100 Original-Received: from localhost ([::1]:55482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt8Tf-0001Xf-HM for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 00:15:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt8TM-0001XU-Hr for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 00:15:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xt8TG-0005Ex-Pz for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 00:15:32 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt8TG-0005Eo-Kx for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 00:15:26 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3836920655; Tue, 25 Nov 2014 00:15:25 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 25 Nov 2014 00:15:25 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=tilk.co; h= x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=s+C+rslFIH7QuBcBZA+p2++Hd4A=; b=DVDM RS4JWDKZVeDIWQzpFfOzAx/agVphrzA1QrZwm0lsCXSc6Ietg7zQp+M8BCcOZ8kH VA+fMCl60pRvQmE1Jk56sN6VY1eWMj+5OCAMlhs4pWGRzccw29aITck8duATonc3 JQhN4fK6t1fstLO56I6V47EojZiFPdXOAquVSbc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=s+C+rslFIH7 QuBcBZA+p2++Hd4A=; b=ZCnT3Z+BJA1XX/b9In0QdIeIoifpR7kMo5n+5hvviDI 8ti2ZNXptuekOpbwD4phj5kmNnmaE7xuMUbTthYaaiV4geZ9W6NNh+p80nbFWqOG GHMZv/oBxhyzUNowGA0uaZmM8m/RL7IoKIi9tj2jsH7mtPEbXeWFRoKAeuwgSXAA = X-Sasl-enc: 1wX+7WhgyCidigMXM2Yf52s9mEIeU8z0a8v4GXLH7z2t 1416892524 Original-Received: from Paul-Rankins-MacBook-Pro.local (unknown [202.0.190.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 1FFD1C0027F for ; Tue, 25 Nov 2014 00:15:23 -0500 (EST) 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:101145 Archived-At: Hello, I'd like to eschew an .authinfo file in favour of the Mac OS Keychain but can't seem to get it going. I keep receiving the error: auth-source-macos-keychain-search: The MacOS Keychain auth-source backend doesn't support creation yet Some relevant excerpts from my init file: '(auth-sources (quote (macos-keychain-internet macos-keychain-generic))) '(smtpmail-smtp-server "mail.example.com") '(smtpmail-smtp-service 465) '(smtpmail-smtp-user "user@example.com") '(smtpmail-stream-type (quote ssl)) '(send-mail-function (quote smtpmail-send-it)) I have created an entry with Keychain Access in my default keychain with the following: Keychain Item Name: mail.example.com Account Name: user@example.com Password: password12345 The following commands return the password: $ security find-generic-password -l mail.example.com -a user@example.com -w => password12345 $ security find-generic-password -s mail.example.com -a user@example.com -w => password12345 However, if I eval (auth-source-search :label "mail.example.com") => nil (auth-source-search :server "mail.example.com") = nil (auth-source-search :label "mail.example.com" :user "user@example.com") => nil The Mac OS authorisation popup appears, but I can't tell whether it's returning the password... I have the `security` retrieval method working for OfflineIMAP using the real Keychain entry, so it's not a user/password problem. I'm happy to switch to another `send-mail-function`. If anyone has working SMTP email with Mac OS Keychain auth I would love some pointers :) Many thanks, -- 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.