From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9896 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 20:22:49 +0100 Message-ID: <5pjqcaFquu3iU1@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> <5pj7qbFredgsU1@mid.uni-berlin.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194682435 26285 80.91.229.12 (10 Nov 2007 08:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2007 08:13:55 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Nov 10 09:13:57 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 1IqlTZ-0001dD-4l for gegu-info-gnus-english@m.gmane.org; Sat, 10 Nov 2007 09:13:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqlTN-0000Bg-B8 for gegu-info-gnus-english@m.gmane.org; Sat, 10 Nov 2007 03:13:45 -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: 72 Original-X-Trace: news.uni-berlin.de WvdTG1Mn92mj3QNiIGVkXA3FGZESGmZUAFfJUPCCdhOJhGlXE= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80099 X-Mailman-Approved-At: Sat, 10 Nov 2007 03:12:28 -0500 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:9896 Archived-At: Sivaram Neelakantan writes: > Richard G Riley writes: > > > [...] > >> 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. > > ummm...I wrote the first half of the page, so if you explain what's > the issue, I could revise the page for the better. Maybe your Emacs > config for gnus and msmtprc without the identifying info could be a > good start. > > Before sending the email, try checking the variable > message-sendmail-extra-arguments to see whether it points to the > correct alias of msmtprc profiles. > > sivaram > -- OK, the problem is narrowed down. the account is correct. But its not matching the .msmtprc section. Instead it is dropping through to the default e.g ,---- | account abc | user abc@gmail.com | password abc123 | | account rgr | user rgr@gmail.com | password rgr123 | | account default : rgr `---- in this case if the "from" is logged using message in the multi-smtp function then message correctly reports that account "abc" was selected into variable account. But the actual user & password picked up for the smtp chat with the gmail servers is that of rgr above : the default account. I have latest msmtp 1.4.13. This then makes me think there is indeed a problem with (setq message-sendmail-extra-arguments (list "-a" account)) But examining it tells me message-sendmail-extra-arguments's value is ("-a" "abc") Is this correct? Has something changed here? So what else can I do to debug? I am dreading this being something so obvious with my config file.