From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76540 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: smtp credential, multiple smtp, posting styles and smtpmail Date: Thu, 10 Feb 2011 10:36:11 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87ipwsw8j9.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297330735 12960 80.91.229.12 (10 Feb 2011 09:38:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2011 09:38:55 +0000 (UTC) To: nognus Original-X-From: ding-owner+M24887@lists.math.uh.edu Thu Feb 10 10:38:51 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 1PnSzB-0004bK-Ss for ding-account@gmane.org; Thu, 10 Feb 2011 10:38:50 +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 1PnSyy-0008FG-Jr; Thu, 10 Feb 2011 03:38:36 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PnSyx-0008F0-Cn for ding@lists.math.uh.edu; Thu, 10 Feb 2011 03:38:35 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PnSyw-0002CI-1F for ding@lists.math.uh.edu; Thu, 10 Feb 2011 03:38:34 -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 1PnSyu-0007Is-Uj for ding@gnus.org; Thu, 10 Feb 2011 10:38:33 +0100 Original-Received: by bwz12 with SMTP id 12so1791667bwz.17 for ; Thu, 10 Feb 2011 01:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:date:organization :message-id:references:user-agent:mime-version:content-type; bh=mq9PI6K+uDEUaaKNe9hz2LA+Gn8GTmOYpVgWeUKCwIs=; b=yGTGNsLKfckdx+bvZgoK1ARZUrduS4yQ578BZIO0k16xFRZ0lmDTIcSf8AMXgUG/zn Ts2FC9w5uDMt+UVKVYthDQLBMUiaSgXmlcsC9eukbHCs879NHvocbKrEFB03njrRyRbg ymVAUrxoLREdfAVQ/L1kZH+htQ2IqwR89rS70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:in-reply-to:date:organization:message-id:references :user-agent:mime-version:content-type; b=Xw+NttgFA3WVFibFNcrMuoJ6xai9STBlRvmFGt/zf1teSLkUyqSe9RQ0/aGIlOeUAA Aml/L78nU2G33ZheP5eGQTzs3gDnPWdrMdm53IctbafkatIKoHFeYKBHWPPzInP39GSm qoKnMUPpVwu9PeIXbcyAkYR0T4OkwWBVekcNo= Original-Received: by 10.204.66.148 with SMTP id n20mr20289430bki.44.1297330707061; Thu, 10 Feb 2011 01:38:27 -0800 (PST) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id rc9sm834561bkb.14.2011.02.10.01.38.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Feb 2011 01:38:26 -0800 (PST) In-Reply-To: <87ipwsw8j9.fsf@keller.adm.naquadah.org> (Julien Danjou's message of "Thu, 10 Feb 2011 10:20:10 +0100") 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:76540 Archived-At: Julien Danjou writes: > On Thu, Feb 10 2011, Richard Riley wrote: > >> 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? > > You should not need that. smtp should use credentials based on > .authinfo.gpg using auth-source. Otherwise it's almost a bug. :) But it is needed for multiple smtp servers. Hence all the "select smtp server at message send" hacks. I already use a gpg file (.authinfo.gpg) . Also there is the issue, which I mentioned, of logical names used in select methods - there is no smtp server or real server set in the .authinfo file - its done in the select method. e.g I thought something like this in my "secret.gpg" ,---- | (setq gnus-posting-styles `((".*" | (from "Richard Riley ") | (eval(setq gnushush-user-agent-header (quote real))) | (signature-file "~/.emacs.d/.sigs/rgr.sig") | (eval (setq mml2015-signers '("AB23BE58"))) | (eval (setq smtpmail-auth-credentials '(("smtp.gmail.com" 25 "rileyrg@googlemail.com" "******")))) | ;;(eval (setq message-sendmail-extra-arguments '("-a" "riley"))) | (organization "aich tea tea pea dicky riley dot net")))) `---- note the setting of smtpmail-auth-credentials. (and the commented out "extra args" previously used for msmtp) Or? (Its quite possibly I'm doing the dying fly dance here ;))