Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven E. Harris" <seh@panix.com>
Cc: ding@gnus.org
Subject: Re: Gnus with Exim
Date: Wed, 08 Jun 2005 11:14:22 -0700	[thread overview]
Message-ID: <jk4d5qwpvgh.fsf@W003275.na.alarismed.com> (raw)
In-Reply-To: <uekbft0c3.fsf@boost-consulting.com> (David Abrahams's message of "Mon, 06 Jun 2005 21:36:12 -0400")

David Abrahams <dave@boost-consulting.com> 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.

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 = manualroute
|   domains = ! +local_domains
|   transport = remote_smtp
|   route_list = * smtp.rcn.com
`----

you could use this¹:

,----
| smart_route:
|   driver = manualroute
|   domains = ! +local_domains
|   transport = 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 = * smtp.rcn.com
`----

,----[ /etc/exim_bc_route_list ]
| route_list = * smtp.boost-consulting.com
`----

You'd have to flip that symlink each time you changed your computer's
physical location.

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 = manualroute
|   domains = ! +local_domains
|   transport = remote_smtp
|   route_list = * smtp.rcn.com:smtp.boost-consulting.com
`----

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.² That
means that if the two smart hosts operate on different ports, they
need different remote_smtp transport specifications:

,----
| smart_route:
|   driver = manualroute
|   domains = ! +local_domains
|   transport = remote_smtp
|   route_list = * smtp.rcn.com
|   host_find_failed = pass
|
| smart_route_fallback:
|   driver = manualroute
|   domains = ! +local_domains
|   transport = remote_smtp_special
|   route_list = * smtp.boost-consulting.com
`----

,----[ Transport to handle non-standard SMTP port ]
| remote_smtp_special:
|   driver = smtp
|   port = 2525
`----

I have not tested this configuration -- host_find_failed in particular
-- but it matches my reading of the manualroute router documentation.³


[...]

> I'd be satisfied with a configuration that tried smtp.rcn.com and
> then fell back to smtp.boost-consulting.com.  That scheme seems to
> work in 99% of all locations.

Please consider the proposals above and let me know what you think.


Footnotes: 
¹ http://www.exim.org/exim-html-4.50/doc/html/spec_6.html#SECT6.3
² http://www.exim.org/exim-html-4.50/doc/html/spec_30.html#IX2248
³ http://www.exim.org/exim-html-4.50/doc/html/spec_20.html#IX1733

-- 
Steven E. Harris



  reply	other threads:[~2005-06-08 18:14 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-03 13:30 Asynchronous Gnus? David Abrahams
2005-06-03 20:37 ` Gnus with Exim (was: Asynchronous Gnus?) David Abrahams
2005-06-03 22:28   ` Gnus with Exim Steven E. Harris
2005-06-04 13:47     ` David Abrahams
2005-06-04 15:29       ` Steven E. Harris
2005-06-06  2:05         ` David Abrahams
2005-06-06 17:04           ` Steven E. Harris
2005-06-06 18:31             ` David Abrahams
2005-06-06 19:59               ` Steven E. Harris
2005-06-06 20:43                 ` David Abrahams
2005-06-06 22:44                   ` Steven E. Harris
2005-06-06 23:08                     ` David Abrahams
2005-06-06 23:47                       ` Steven E. Harris
2005-06-07  1:36                         ` David Abrahams
2005-06-08 18:14                           ` Steven E. Harris [this message]
2005-06-08 19:45                             ` David Abrahams
2005-06-08 20:14                               ` Steven E. Harris
2005-06-08 20:48                                 ` David Abrahams
2005-06-08 21:20                                   ` Steven E. Harris
2005-06-23 18:49                                     ` David Abrahams
2005-06-24 17:14                                       ` Steven E. Harris
2005-06-24 18:09                                         ` David Abrahams
2005-06-25 15:33                                           ` Steven E. Harris
2005-07-19 11:05                                     ` func-menu David Abrahams
2005-07-19 14:01                                       ` func-menu J. David Boyd
2005-07-19 14:21                                       ` func-menu Ted Zlatanov
2005-07-19 14:35                                         ` func-menu David Abrahams
2005-07-19 15:20                                           ` func-menu Ted Zlatanov
2005-07-19 15:41                                             ` func-menu David Abrahams
2005-07-20  1:03                                               ` func-menu Danny Siu
2005-07-22 14:55                                                 ` func-menu David Abrahams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jk4d5qwpvgh.fsf@W003275.na.alarismed.com \
    --to=seh@panix.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).