From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80200 Path: news.gmane.org!not-for-mail From: zwz Newsgroups: gmane.emacs.gnus.general Subject: Re: settings for multiple smtp accounts Date: Fri, 07 Oct 2011 15:36:53 +0800 Message-ID: <87d3e9mewa.fsf@gmail.com> References: <87d3ecdg5n.fsf@gmail.com> <87ehysrbh1.fsf@ucl.ac.uk> <87k48itygb.fsf@gmail.com> <82aa9eyswv.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317972723 460 80.91.229.12 (7 Oct 2011 07:32:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 07:32:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28494@lists.math.uh.edu Fri Oct 07 09:31:58 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 1RC4uT-0003S8-LZ for ding-account@gmane.org; Fri, 07 Oct 2011 09:31:57 +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 1RC4tK-0007jv-BT; Fri, 07 Oct 2011 02:30:46 -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 1RC4tH-0007ji-OJ for ding@lists.math.uh.edu; Fri, 07 Oct 2011 02:30:43 -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 1RC4tF-0003nY-MB for ding@lists.math.uh.edu; Fri, 07 Oct 2011 02:30:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RC4t9-00069B-W7 for ding@gnus.org; Fri, 07 Oct 2011 09:30:35 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RC4t9-00034R-Ah for ding@gnus.org; Fri, 07 Oct 2011 09:30:35 +0200 Original-Received: from 60.191.28.52 ([60.191.28.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Oct 2011 09:30:35 +0200 Original-Received: from zhangweize by 60.191.28.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Oct 2011 09:30:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 60.191.28.52 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:ie1jg2oHGBXjn6F7ae+nF4P1EHU= X-Spam-Score: -3.3 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80200 Archived-At: Sivaram Neelakantan writes: > On Thu, Oct 06 2011,zwz wrote: > >> Eric S Fraga writes: >> > > [snipped 14 lines] > >> >> But in this way, it still means one has to list the email address >> literally in the config file, doesn't it? >> > > Yes, sort of. This may be of help where the poster does check the > headers and then sends mail based on it. I use posting styles and so > cannot verify whether the suggestion works. > > http://www.emacswiki.org/emacs/GnusMSMTP > > scroll to "Yet Another Gnus/MSMTP Setting for Easy Multi-SMTP Sending" Thanks. In fact, what I want is something quite alike, except that when sending mail, gnus can get the src email address from the "from" part, and then it tries to find the right smtp server, port, password, etc. in the .authinfo.gpg, and finally gets the mail send. In this way, there would be no literal email address in the config file; meanwhile it supports multiple email accounts naturally. I don't know whether it is possible, but it is what I desire. BTW, msmtp is great, however I have to give the password in .msmtprc (is it not necessary?), which I think is bad. > > > sivaram > --