Solved

howto setup a backup mx server?

Posted on 2002-07-21
7
274 Views
Last Modified: 2010-03-18
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
0
Comment
Question by:calvinrsmith
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 15

Accepted Solution

by:
samri earned 30 total points
ID: 7168603
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
 
LVL 1

Author Comment

by:calvinrsmith
ID: 7169854
Sendmail looks to complicated to setup for such a simple task, is there an easier program?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7169885
some people find qmail or postfix "easier" (whateverthismeans:)
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 15

Expert Comment

by:samri
ID: 7169998
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
 
LVL 20

Expert Comment

by:Gns
ID: 7217060
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
 
LVL 20

Expert Comment

by:Gns
ID: 8648004
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
 
LVL 1

Author Comment

by:calvinrsmith
ID: 8648315
forgot about this,  i eventually found a copy of eXtremail and set it up.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question