From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9900 Path: news.gmane.org!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.gnus.user Subject: Re: msmtp and multiple smtp servers Date: Sat, 10 Nov 2007 21:51:34 +0530 Message-ID: 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> <5pjqcaFquu3iU1@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 1194712591 7348 80.91.229.12 (10 Nov 2007 16:36:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2007 16:36:31 +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 17:36:35 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 1IqtJw-0006iT-OS for gegu-info-gnus-english@m.gmane.org; Sat, 10 Nov 2007 17:36:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqtJl-0008N2-01 for gegu-info-gnus-english@m.gmane.org; Sat, 10 Nov 2007 11:36:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqtJj-0008MU-9X for info-gnus-english@gnu.org; Sat, 10 Nov 2007 11:36:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqtJh-0008Ld-CX for info-gnus-english@gnu.org; Sat, 10 Nov 2007 11:36:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqtJh-0008La-7L for info-gnus-english@gnu.org; Sat, 10 Nov 2007 11:36:17 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IqtJg-0000TR-Tl for info-gnus-english@gnu.org; Sat, 10 Nov 2007 11:36:17 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IqtHS-0002rF-LB for info-gnus-english@gnu.org; Sat, 10 Nov 2007 16:33:58 +0000 Original-Received: from 122.167.60.46 ([122.167.60.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2007 16:33:58 +0000 Original-Received: from nsivaram.net by 122.167.60.46 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2007 16:33:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 90 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 122.167.60.46 User-Mail-Address: nsivaram.net@gmail.com User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:U1LvIjIvuuzKEjmQT8EdJFOHiZA= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:9900 Archived-At: Richard G Riley writes: > Sivaram Neelakantan writes: > >> Richard G Riley writes: >> >> >> [...] >> >>> I tried the solution here: >>> [...] > > 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. Does your posting style look similar to this? (setq gnus-parameters '((".*news\\.gmane\\.org.*" (visible . t) (display . all) (posting-style (address "nsivaram.xxxxxx@gmail.com") (name "Sivaram Neelakantan") (eval (setq message-sendmail-extra-arguments '("-a" "siva"))) (user-mail-address "nsivaram.xxxx@gmail.com"))) (".*nnfolder:.*" (posting-style (address "sssss@gmail.com") (name "Ssssss") (body "Sssss") (eval (setq message-sendmail-extra-arguments '("-a" "sssss"))) (user-mail-address "ssssss@gmail.com"))))) Obviously, the sendmail args go into effect only when I *enter* the specific folders. The second argument is the account names in the msmtprc file. 1. Set the posting styles match for 2 different folders and check the message-sendmail-extra-arguments value in each case (by entering the folder) to see whether it changes from one value to the other. If it doesn't, fix your posting styles, first. 2. Then send an email and check the logs and the sent mail folder on gmail to check which smtp account it used. The extra-args thingy goes into effect only when there is a match and that is achieved by entering a folder. sivaram --