From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9884 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.gnus.user Subject: Re: msmtp and multiple smtp servers Date: Fri, 09 Nov 2007 15:06:03 +0100 Message-ID: <5pj7qbFredgsU1@mid.uni-berlin.de> References: <5phh1oFrfp8hU1@mid.uni-berlin.de> <87fxzge45g.fsf@gnu.org> <5phjikFr9vkuU1@mid.uni-berlin.de> <87bqa4e208.fsf@gnu.org> <5phnnjFrh2fcU1@mid.uni-berlin.de> <87zlxo89b0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194619277 1073 80.91.229.12 (9 Nov 2007 14:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2007 14:41:17 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Nov 09 15:41:21 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IqV2p-00047y-3l for gegu-info-gnus-english@m.gmane.org; Fri, 09 Nov 2007 15:41:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqV2d-0001mO-NB for gegu-info-gnus-english@m.gmane.org; Fri, 09 Nov 2007 09:41:03 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 52 Original-X-Trace: news.uni-berlin.de zyMoLjExP3qQQ8rryOTUJgbuJFAGgi3c+fbAFvPAk/AB2bRI0= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80094 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9884 Archived-At: Exal de Jesus Garcia Carrillo writes: > Richard G. Riley em gnu.emacs.gnus escreveu : > >> Exal de Jesus Garcia Carrillo writes: >> >>> Richard G. Riley em gnu.emacs.gnus escreveu : >>> >>>> Exal de Jesus Garcia Carrillo writes: >>>> >>>>> Richard G. Riley em gnu.emacs.gnus escreveu : >>>>> >>>>> >>>>>> I have moved to try to use msmtp because it allows configurations to be >>>>>> stored in .msmtprc which is easier to hide from prying eyes than a >>>>>> separate .el file. >>>>> >>>>> With smtpmail.el you could also store sensitive information in a >>>>> separated file. >>>> >>>> Could you explain how? I don't like requir'ing another .el file with >>>> different permissions. I prefer a resource file such as .authinfo or >>>> .msmtprc >>> >>> >>> >>> (setq smtpmail-auth-credentials "~/.authinfo") >> >> This doesn't work with multiple accounts on the same machine from what I >> can gather and is useless if you use a function like fs-change-smtp (google) >> which sets smtpmail-auth-credentials based on the from field. > > > > why not? If I knew I wouldn't be asking here. I tried the solution here: http://www.emacswiki.org/cgi-bin/wiki/GnusMSMTP What happens is that gmail smtp servers replaces my "from" email with the one matching the first authinfo entry for "smtp.gamil.com".So When I send an email using one of a couple of posting styles the recipient sees the "id1@gmail" as the from instead of "id2@gmail" despite the fact that msmtp had the from correctly set as id2@gmail in the .msmtprc file. It is all quite confusing. Any help appreciated.