D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] backup MX



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Russell wrote:
Seeing David's posting reminded me of a task I intend for the coming weeks
and had thought about looking for a HOW-TO/FAQ on. That is, how do I set up
a redundant mail server that will forward mail to the primary mail server
when its available?

Using exim4 on debian it's been trivial for my trudgian.net domain.

I have the following machines:

redwood.trudgian.net - My UML host, primary mail server
doris.trudgian.net - My ADSL server, backup mail server.

The following steps were carried out:

1) Setup exim4 on redwood with the following options:
- - Internet Site
- - System mail name: trudgian.net
- - No relaying

2) Setup  exim4 on doris with the following options:
- - Internet Site
- - System mail name: doris
- - Relaying for: trudgian.net

3) Configure DNS for trudgian.net with the following MX records:
MX 10 redwood.trudgian.net
MX 20 redwood.trudgian.net

So, email for trudgian.net will go to redwood.trudgian.net first as it has the 
lowest MX number. redwood will accept and deliver mail locally as it has the 
mailname trudgian.net. If redwood is down mail will go to doris.trudgian.net. 
doris will accept mail for relay, put it in its queue and try to deliver it 
to redwood.trudgian.net according to its queuing rules.

The imporant things in the configuration are that:

The primary server has the domain as its mailname or is configured to *accept* 
email for the domain.

The backup server does not have the domain as its mailname, and is not 
configured to accept mail for the domain. It is however configure to *relay* 
mail for that domain.

The steps should be pretty much the same for any MTA.

I'm happy to try and answer people's questions about exim... I migrated Exeter 
University's Guild of Students mail server from sendmail to exim which was 
quite an extensive task. I've also used it a lot since.

- -- 
Dave Trudgian - Cornish Dave
- ----------------------------
[w] www.trudgian.net
[e] dave@xxxxxxxxxxxx
[j] trudgiad@xxxxxxxxxxxxxxx

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeuwYt+PdOLWW6O4RAk4QAJ0fIk7tQzs9ySc3KJ6praO5pOHdIACcDxZH
J0yag9t5VbTd1u1y/EJ8SFE=
=ALxp
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly