From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9864 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.gnus.user Subject: Re: Multiple smtpmail Accounts Date: Thu, 08 Nov 2007 01:05:32 +0800 Organization: cyberhut.org Message-ID: References: <1194445957.392484.29740@o3g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1194455418 8708 80.91.229.12 (7 Nov 2007 17:10:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2007 17:10:18 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Nov 07 18:10:17 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 1IpoPx-0000pU-00 for gegu-info-gnus-english@m.gmane.org; Wed, 07 Nov 2007 18:10:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpoPl-0000JN-Ed for gegu-info-gnus-english@m.gmane.org; Wed, 07 Nov 2007 12:10:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpoME-0006BU-Jk for info-gnus-english@gnu.org; Wed, 07 Nov 2007 12:06:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpoMC-00067I-Oy for info-gnus-english@gnu.org; Wed, 07 Nov 2007 12:06:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpoMC-00066j-JK for info-gnus-english@gnu.org; Wed, 07 Nov 2007 12:06:24 -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 1IpoMC-0007Yo-Cv for info-gnus-english@gnu.org; Wed, 07 Nov 2007 12:06:24 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IpoM2-0001dW-I9 for info-gnus-english@gnu.org; Wed, 07 Nov 2007 17:06:14 +0000 Original-Received: from 222.94.199.252 ([222.94.199.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Nov 2007 17:06:14 +0000 Original-Received: from chenggao by 222.94.199.252 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Nov 2007 17:06:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 222.94.199.252 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (darwin) Cancel-Lock: sha1:qU/iN6W221yx7PcOwD/zPQiBDpY= 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:9864 Archived-At: *On Wed, 07 Nov 2007 06:32:37 -0800 * Also sprach Volkan YAZICI : > Hi, > > I have different server entries both in my smtpmail-starttls- > credentials and smtpmail-auth-credentials variables. But when I want to > send a mail in gnus, smtpmail always prefers to use the server defined > in smtpmail-smtp-server. In case of I empty this variable, smtpmail > complains that smtpmail-smtp-server is not configured. > > How can I make smtpmail to select between different servers defined in > smtpmail-starttls-credentials and smtpmail-auth-credentials by looking > at "From:" header of the about to be sent post? > > > Regards. Using smtpmail.el seems not an easy solution. I use a lightweight standalone application named MSMTP (http://msmtp.sf.net) and wrote a simple function (put in .gnus.el) to choose among 7 email accounts. You can change your from address at any time before sending. If you are interested you can read my addtion to EmacsWiki page - http://www.emacswiki.org/cgi-bin/wiki/GnusMSMTP My addtion is at the bottom under title "Yet Another Gnus/MSMTP Setting for Easy Multi-SMTP Sending". -- Numquam minus solus quam cum solus