From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76538 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: smtp credential, multiple smtp, posting styles and smtpmail Date: Thu, 10 Feb 2011 10:03:22 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297328676 2350 80.91.229.12 (10 Feb 2011 09:04:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2011 09:04:36 +0000 (UTC) To: nognus Original-X-From: ding-owner+M24885@lists.math.uh.edu Thu Feb 10 10:04:32 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PnSRz-0004A3-CS for ding-account@gmane.org; Thu, 10 Feb 2011 10:04:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PnSRE-00081z-9h; Thu, 10 Feb 2011 03:03:44 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PnSRB-00081f-Dv for ding@lists.math.uh.edu; Thu, 10 Feb 2011 03:03:41 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PnSR9-0003ip-Um for ding@lists.math.uh.edu; Thu, 10 Feb 2011 03:03:41 -0600 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PnSR8-0006n9-Pl for ding@gnus.org; Thu, 10 Feb 2011 10:03:38 +0100 Original-Received: by bwz12 with SMTP id 12so1769636bwz.17 for ; Thu, 10 Feb 2011 01:03:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:subject:date:organization:message-id :user-agent:mime-version:content-type; bh=cfX/AIvaR/guivisIc16pVx1UDHpGB3OLRBHdXt8k0E=; b=A8yXdJmbo5bcfctNtTQ16RX6xtp++HUByX7LEPH34I5cW5phMoppaKEBY5yPU4TVlU gcmHzsRjX0ywRd4WOB8DXzdpsdoidp2bEipB1Ornb+tL9/AcEc0X0ukIJCQmd3hyNDX1 oR8D/MR5Rokgbhz5KhtH67oFdxbnp0eC5owuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:organization:message-id:user-agent :mime-version:content-type; b=pzth2Q4LoxFNx3stN7o+/cultuRizC1Hg/SCoqWNbwIskWIWTX7vGBP/pi3GyyFgBB 96vSuHn/kODDYgoNqp7TzzTswVwQEepm/a6hzxkRCeA5mLMfAw8NU1nJITJTIMaltbnH OK8/ohnhvq20S2jc1PucvPGEtgBNLNE4jPMsI= Original-Received: by 10.204.119.133 with SMTP id z5mr20672920bkq.72.1297328613355; Thu, 10 Feb 2011 01:03:33 -0800 (PST) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id 12sm812376bki.19.2011.02.10.01.03.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Feb 2011 01:03:32 -0800 (PST) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76538 Archived-At: Does someone have a way of extracting/setting the correct credentials for smtp posting based on the contents of .authinfo.gpg when using gnus-posting-styles? The problem with msmtp is that the data is in cleartext. The issue with smtpmail-auth-credentials is that I dont think it can easily be used with the "logical" machine name in the authinfo.gpg e.g (add-to-list 'gnus-secondary-select-methods '(nnimap "riley" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl))) Here the authinfo "machine" is "riley". I'm guessing the best and easiest way is to put my gnus-posting-styles all in a gpg file and hardcode the smtp server and id/password in them. Anyone out there already done this? It certainly seems the easiest if possible. I just need to try and figure out which gnus variables are used. Another solution, that might even exist, would be for a server select method to have the associated outgoing smtp server name as a parameter and assume the same access credentials as when reading mail on that server. Again, can I already do this? Ideally I'm trying to avoid juggling which smtp server based on using "from" hacks from around the web and just set access data directly using the gnus posting style. Googling around leaves me a tad jaded - so many options and so complex at times ;)