All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Help: howto config mail server with 2 internet provider?
@ 2003-12-06  7:01 masroor
  2003-12-06 17:34 ` Darryl Miles
  0 siblings, 1 reply; 2+ messages in thread
From: masroor @ 2003-12-06  7:01 UTC (permalink / raw)
  To: lartc

hello,
  I want to send/receive email thru second internet line when the first line 
is disconnected and back to first line when it get on again automattically.

my mail server is  postfix on redhat 9. and it have 2 ethernet cards which 
everyone connected to it's internet line.

i tried this:
http://linux-ip.net/html/adv-multi-internet.html
but it didn't work. 

please someone give me more advice about doing it step by step.

Thanks in advanced,
masroor

--
IUT WebMail Service at CIS (https://cc.iut.ac.ir/webmail/)

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Help: howto config mail server with 2 internet provider?
  2003-12-06  7:01 [LARTC] Help: howto config mail server with 2 internet provider? masroor
@ 2003-12-06 17:34 ` Darryl Miles
  0 siblings, 0 replies; 2+ messages in thread
From: Darryl Miles @ 2003-12-06 17:34 UTC (permalink / raw)
  To: lartc

masroor wrote:

>  I want to send/receive email thru second internet line when the first line 
>is disconnected and back to first line when it get on again automattically.
>
>my mail server is  postfix on redhat 9. and it have 2 ethernet cards which 
>everyone connected to it's internet line.
>
>i tried this:
>http://linux-ip.net/html/adv-multi-internet.html
>but it didn't work. 
>
>please someone give me more advice about doing it step by step.
>  
>

I've glanced over your quoted document, it looks like a policy routing 
example for a multihomed NATed internet site.  Your description of need 
doesn't indicate you want agregate bandwidth just failover.


Some food for thought:

* Is the mail server and LANs default router the same box ?
* Are the interfaces for both primary and backup directly connected to 
the same box ?  If so, How ?
* Are both internet connections NATed ? or routed ?
* You need to confirm the reliability of the mechanism the router uses 
to know when the primary Internet link has failed.
* If your requirement is as simplictic as wanting a backup to be used 
only when the primary link fails, maybe setup two default routes in your 
routing table with a lower metric on the primary route.  In the event 
the link goes down I presume the interface will also go into down state, 
and therefore the routing entry will be removed implicitly by the 
kernel.  The backup route with the higher metric will then be selected 
for default routing.
* Actually test the situation where your primary link fails and confirm 
the host it's directly connected to can detect this and does bring that 
interface down.


In the situation where the mail host and LANs default router is the same 
box and the two Internet links are suppled on dedicated ethernet interfaces:

# Primary link via gateway 10.0.0.1 on eth0
route add -net default gw 10.0.0.1 dev eth0

# Backup link via gateway 10.0.1.1 on eth1
route add -net default gw 10.0.1.1 metric 1 dev eth1


One area to look at is how the default route is added when the backup 
link comes up, this would usualy mean altering the configuration to how 
the backup link add's its default route, you simply add the "metric 1" 
into the route command at this point.


Darryl


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-06 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-06  7:01 [LARTC] Help: howto config mail server with 2 internet provider? masroor
2003-12-06 17:34 ` Darryl Miles

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.