From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79569 Path: news.gmane.org!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple gmail accounts and SMTP (again) Date: Mon, 25 Jul 2011 23:28:37 +0530 Message-ID: <82livmutrm.fsf@gmail.com> References: <87r55fqtyv.fsf@DeuxExMachina.config> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311616818 4583 80.91.229.12 (25 Jul 2011 18:00:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2011 18:00:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27865@lists.math.uh.edu Mon Jul 25 20:00:14 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 1QlPRt-00074J-Bw for ding-account@gmane.org; Mon, 25 Jul 2011 20:00:13 +0200 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 1QlPR4-0002s3-5b; Mon, 25 Jul 2011 12:59:22 -0500 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 1QlPR1-0002rm-94 for ding@lists.math.uh.edu; Mon, 25 Jul 2011 12:59:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QlPQy-0000v8-U9 for ding@lists.math.uh.edu; Mon, 25 Jul 2011 12:59:18 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QlPQv-0007Nf-Ub for ding@gnus.org; Mon, 25 Jul 2011 19:59:13 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QlPQu-0006jJ-KP for ding@gnus.org; Mon, 25 Jul 2011 19:59:12 +0200 Original-Received: from 122.178.219.229 ([122.178.219.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jul 2011 19:59:12 +0200 Original-Received: from nsivaram.net by 122.178.219.229 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jul 2011 19:59:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 122.178.219.229 User-Mail-Address: nsivaram.net@gmail.com User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/23.3 (windows-nt) Cancel-Lock: sha1:nPnQJGOOlt4pPz5kS13/s4hj5Dk= X-Spam-Score: -2.1 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79569 Archived-At: On Mon, Jul 25 2011,Johnny wrote: [snipped 28 lines] > (For SMTP, I am using the emacs-wiki setup, as described here: > http://www.emacswiki.org/emacs/MultipleSMTPAccounts) > > I then attempted to use virtual server names for SMTP as well, i.e.: > In .gnus.el: > (setq smtp-accounts '( > (ssl "gmail1" "smtp.gmail.com" "587" > "gmail1@gmail.com" nil) > (ssl "gmail2" "smtp.gmail.com" "587" > "gmail2@gmail.com" nil))) > > And in authinfo: > machine gmail1 login gmail1@gmail.com password gmail1pass port 587 > machine gmail2 login gmail2@gmail.com password gmail2pass port 587 > > This breaks the sendmail/authinfo functionality such that I have to > enter credentials every time sending mail from either account. > > If I instead replace the 2 lines above in authinfo with: > machine smtp.gmail.com login gmail1@gmail.com password gmail1pass port 587 > > This makes mailing from both addresses work. I /think/ the setup makes > gmail2 use gmail1's SMTP credentials to send the mail (note that I > didn't have to do any changes in .gnus.el on the gmail2 credentials), > and indeed, when it is received, the posting-styles for gmail2 is used, > but the senders mail address has been changed to gmail1, which I do not > fancy at all. > > Any ideas on how to enable using either gmail as sender? > > Cheers Can you post your customised sendmail parts that you took from http://www.emacswiki.org/emacs/MultipleSMTPAccounts It's possible that smtp-mail-address is not getting correctly picked up? sivaram --