howto setup a backup mx server?

My friend has a mail server, however, sometimes his machine is not online and would like me to be a backup mail server for him.  I know how to setup my machine as backup in the DNS entry but what program is good to handle backup mail servers?

FWIW,
My machine is Mandrake 8.2
LVL 1
calvinrsmithAsked:
Who is Participating?
 
samriConnect With a Mentor Commented:
Calvin,

Basically you would need to have the MX entries for the domain to point to your mail server (I would presume it's sendmail).  Make sure the MX preference is lower (higher number).  In this case, any mail will get sent to the default server (your friend's email server), in case that the server is not reacheable, then your server will be contacted.

Take a look at Virtual Hosting page on Sendmail's website for more detail on how to get it done.
http://www.sendmail.org/virtual-hosting.html
Basically, what needs to be done on your sendmail is to enable add yourfriends domain to /etc/mail/sendamil.cw, configure the virtusertable to have the entry

@yourfrienddomain.com          %1@yourfrienddomain.com


With this approach your server will be accepting mail for @yourfrienddomain.com, and with the virtualuser mapping, an attempt is made by your server to send the mail to the actual recipient (@youfrienddomain.com).  However, since the server is not reachable, the mail will spool in your machine.  Another attempt will be made in the future based on your sendmail setting (4hrs, 1 day, etc .etc).

Depending on the volume of mail (# of mails, and size), you would need to have an ample space in /var/spool/mqueue.

Cheers.
0
 
calvinrsmithAuthor Commented:
Sendmail looks to complicated to setup for such a simple task, is there an easier program?
0
 
ahoffmannCommented:
some people find qmail or postfix "easier" (whateverthismeans:)
0
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

 
samriCommented:
calvin,

ahoffman is correct.  Easy/Complicated is really depending on how often you try.  I would say sendmail is pretty straightforward, somebody else might say qmail or postfix (*grin* at ahoffman).

Perhaps you might take a look at other alternative - postfix or qmail, and decide.  Then maybe we all could elaborate on that.

To make like a bit easier (I hope), grab yourself a copy of Webmin (http://www.webmin.com/webmin/) and try the web based admin for Sendmail, or Postfix, (and I think Qmail too).  Still some understanding of virtual hosting is required.

cheers.
0
 
GnsCommented:
Uhm, Since you have a Mandrake8.2, you probably already installed postfix Calvin.
Webmin is included in the distro too, so you should just have to install it;).

-- Glenn
0
 
GnsCommented:
So (10 months, more or less, later) is it time to "elaborate" now, or did you get anything set up?

-- Glenn (Who is going through the "real-old-unlocked-questions" he has commented in)
0
 
calvinrsmithAuthor Commented:
forgot about this,  i eventually found a copy of eXtremail and set it up.
0
All Courses

From novice to tech pro — start learning today.