Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Failover to smarthost

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


gary.stainburn at ringways

Jul 31, 2013, 1:27 AM

Post #1 of 3 (52 views)
Permalink
Failover to smarthost

Hi folks

I've got a remote office with it's own DSL connection to the internet as well
as a direct link back to the main office.

I have exim set up to delivery email directly using a normal DNS router which
works fine.

However, the DSL connection is unreliable and sometimes I have to manually
switch over to a smarthost down the direct link to head office.

Config shown below.

Is there a way that I could get Exim to cope automatically with the state of
the DSL connection? maybe try the dnslookup first but fail over to smarthost
for network related errors?

If Exim cannot do it directly, I could write a monitor deamon that could set /
reset some for of trigger. Would this help?

begin routers

# smarthost_domains = those domains that reject emails from DSL connections
# smarthosts when DSL is working, local_domains when DSL is down
smarthost:
driver = manualroute
# domains = +smarthost_domains
domains = ! +local_domains
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
transport = remote_smtp
route_data = mail.ringways.co.uk
no_more

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more



--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


jgh at wizmail

Jul 31, 2013, 1:59 AM

Post #2 of 3 (52 views)
Permalink
Re: Failover to smarthost [In reply to]

On 31/07/13 09:27, Gary Stainburn wrote:
> However, the DSL connection is unreliable and sometimes I have to manually
> switch over to a smarthost down the direct link to head office.

"fallback_hosts"

http://exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html

--
Cheers,
Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


gary.stainburn at ringways

Jul 31, 2013, 5:16 AM

Post #3 of 3 (49 views)
Permalink
Re: Failover to smarthost - solved [In reply to]

Great ta,

worked a treat.

Gary

On Wednesday 31 July 2013 09:59:21 Jeremy Harris wrote:
> On 31/07/13 09:27, Gary Stainburn wrote:
> > However, the DSL connection is unreliable and sometimes I have to
> > manually switch over to a smarthost down the direct link to head office.
>
> "fallback_hosts"
>
> http://exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for
>_routers.html
>
> --
> Cheers,
> Jeremy



--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.