From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60430 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus with Exim Date: Wed, 08 Jun 2005 15:45:02 -0400 Message-ID: References: <83k6lagmx8.fsf@torus.sehlabs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118259841 15131 80.91.229.2 (8 Jun 2005 19:44:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2005 19:44:01 +0000 (UTC) Original-X-From: ding-owner+M8957@lists.math.uh.edu Wed Jun 08 21:43:53 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dg6Qa-0001qS-85 for ding-account@gmane.org; Wed, 08 Jun 2005 21:41:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Dg6UH-0003OA-00; Wed, 08 Jun 2005 14:45:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dg6UC-0003O5-00 for ding@lists.math.uh.edu; Wed, 08 Jun 2005 14:45:12 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dg6UB-0004TQ-BS for ding@lists.math.uh.edu; Wed, 08 Jun 2005 14:45:11 -0500 Original-Received: from smtp04.mrf.mail.rcn.net ([207.172.4.63]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dg6U5-0007fx-00 for ; Wed, 08 Jun 2005 21:45:05 +0200 Original-Received: from 146-115-127-135.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com (HELO i9300.boost-consulting.com) (146.115.127.135) by smtp04.mrf.mail.rcn.net with ESMTP; 08 Jun 2005 15:45:04 -0400 X-IronPort-AV: i="3.93,183,1115006400"; d="scan'208"; a="44730614:sNHT23390408" Original-Received: from dave by i9300.boost-consulting.com with local (Exim 4.50) id IHS6V3-0002U8-7D; Wed, 08 Jun 2005 15:45:03 -0400 Original-To: ding@gnus.org In-Reply-To: (Steven E. Harris's message of "Wed, 08 Jun 2005 11:14:22 -0700") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (windows-nt) X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60430 "Steven E. Harris" writes: > David Abrahams writes: > >> Okay, I'm going to ask you "what should I do next to configure Exim >> so that I can send mail from anywhere?" > > After thinking it over for a few days, I think I'd take advantage of > some of exim's new configuration file "preprocessor-like" features and > use a swappable smart host setup, skipping the dnslookup stuff. I'm just putting smart_route first at the moment. I figure dnslookup might work somewhere that my regular servers are unreachable. > You could define a router like the "smart_route" one defined in the > first exim.conf I shared, but rather than specifying smtp.rcn.com > directly, use file inclusion to pull in a one- or two-line snippet > from a separate file that defines your current SMTP server. It's only > a slightly less ugly version of the multiple exim.conf file scheme I > mentioned a few days ago, but I think it best captures your > requirements. > > Rather than using this directly, > > ,---- > | smart_route: > | driver =3D manualroute > | domains =3D ! +local_domains > | transport =3D remote_smtp > | route_list =3D * smtp.rcn.com > `---- > > you could use this=B9: > > ,---- > | smart_route: > | driver =3D manualroute > | domains =3D ! +local_domains > | transport =3D remote_smtp > | .include /etc/exim_smarthost_route_list > `---- > > The file /etc/exim_smarthost_route_list could be a symlink that > pointed to one of two files: > > ,----[ /etc/exim_rcn_route_list ] > | route_list =3D * smtp.rcn.com > `---- > > ,----[ /etc/exim_bc_route_list ] > | route_list =3D * smtp.boost-consulting.com > `---- > > You'd have to flip that symlink each time you changed your computer's > physical location. Cool, I was thinking something like that might be possible > Alternately, why not try this first and see if it suits your > needs. Specify multiple servers in your smart host route list, and let > them be tried in order: > > ,---- > | smart_route: > | driver =3D manualroute > | domains =3D ! +local_domains > | transport =3D remote_smtp > | route_list =3D * smtp.rcn.com:smtp.boost-consulting.com > `---- Actually that's what I have running right now. I was having bad smtp response this morning so I decided to bite the bullet and set everything up as best I could before hearing from you. [BTW, how do you make those nice callouts?] I was thinking that the ideal would be=20 ,---- | smart_route: | driver =3D manualroute | domains =3D ! +local_domains | transport =3D remote_smtp | .include /etc/exim_smarthost_route_list `---- with ,----[ /etc/exim_smarthost_route_list ] | route_list =3D * smtp.rcn.com:smtp.boost-consulting.com `---- or ,----[ /etc/exim_smarthost_route_list ] | route_list =3D * smtp.boost-consulting.com:smtp.rcn.com `---- depending on which server had succeeded the last time. But I don't know how to do that. Parsing the log file? That's a frightening thought. > The only trouble there arises if one of those servers operates on a > non-standard port, or rather if they operate on different ports. The > SMTP port is specified as part of the remote_smtp transport.=B2=20 Fortunately I don't have that problem. --=20 Dave Abrahams Boost Consulting www.boost-consulting.com