From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8129 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.gnus.user Subject: Re: More mail questions Date: Sat, 28 Oct 2006 18:25:28 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87odrw3kzr.fsf@lion.rapttech.com.au> References: <87vem6u3ug.fsf@gmail.com> <87slha2rh7.fsf@lion.rapttech.com.au> <87lkn2rzfj.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162024870 15806 80.91.229.2 (28 Oct 2006 08:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 08:41:10 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Oct 28 10:41:07 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdjkR-0007oV-AT for gegu-info-gnus-english@m.gmane.org; Sat, 28 Oct 2006 10:41:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdjkQ-0002rp-NS for gegu-info-gnus-english@m.gmane.org; Sat, 28 Oct 2006 04:40:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!news2.euro.net!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-05!sn-post-ams-01!sn-post-ams-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:dYbhy0Qay5bZFWaPYAlbE+XSGX4= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 41 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78314 Original-To: info-gnus-english@gnu.org 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:8129 Archived-At: Hadron Quark writes: > But this still begs the question : how to configure gnus to > (preferably using procmail rules) palm off emails destined to local users > and NOT to send them off to the smtp server I am using from smtpmail. > I don't use gnus for mail, but rather VM. With vm, there is an add-on package called vm-pcrisis, which I *think* allows vm to use different smtp servers based on criteria like the from address being used or the domain mail is being sent to. The main objective of this package is to allow you to use one configuration to represent yourself as different people (i.e. different mail addresses). It might be worth having a look at this package to get some ideas. Off the top of my head - - Write a function which will set the smtpmail-smtp-server variable to an appropriate server based on the recipient address i.e. if it is localhost or does not have a domain attached, use the local smtp server, otherwise send it to the remote smtp server. - Have this function then call the smtp-mail-send-it function as its last form. - Set this function as the value for message-sned-mail-function Another alternative would be to use defadvice around smtpmail-send-it using the 'before form to set the smtpmail-smtp-server variable before the function proper is called. This would have the possible advantage of working regardless of the mail sending interface used (i.e. send-mail-function or message-send-mail-function). HTH Tim -- tcross (at) rapttech dot com dot au