Solved

Utilizing multiple mail servers w/ sendmail

Posted on 1998-04-13
2
287 Views
Last Modified: 2013-12-16

Hello....

I'm wanting to setup a second mail server that will queue messages that weren't able to be received by the primary mail server because it was too busy.  I'm really looking for info on how most people set something like this up, configuration and just an overview.  Thanks.
0
Comment
Question by:adamolson
2 Comments
 
LVL 1

Accepted Solution

by:
mzito earned 700 total points
ID: 1812979
Very simple.  Configure your DNS to have two MX records- one for your primary (we'll call it a.foo.com) and one for your secondary (b.foo.com).  In your BIND setup, it'll look something like this:

    IN    MX     10      a.foo.com
    IN    MX     100      b.foo.com

Then, setup sendmail as follows: a.foo.com is responsible for a.foo.com and foo.com (I assume you already have this set up properly, since you said you want to add the second server).  b.foo.com is responsible for just b.foo.com.  When mail is unable to be reached @a.foo.com, the sending mail server will automatically retry using b.foo.com.  When b.foo.com recieves the mail, it will attempt to deliver to a.foo.com.  If it fails, it will see that itself is the second host, and continue queueing the message.  The two important things to remember is to make sure b.foo.com is NOT responsible for a.foo.com or foo.com (I mean, don't define it in the Cw macro), otherwise it will try to deliver locally. Also, make sure that b.foo.com is not a CNAME to another machine, but rather, that machine's true hostname.  I hope this helps, and if you have any more problems or questions, feel free to email me @ mzito@wwprsd.mercernet.net

Best Wishes,
Matthew Zito
0
 
LVL 1

Author Comment

by:adamolson
ID: 1812980
Adjusted points to 700
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spectrum scale snapshot  resotre/mount 1 27
Access_log 17 163
Linux hostname change 2 87
awk sed 8 102
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

685 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