Solved

Utilizing multiple mail servers w/ sendmail

Posted on 1998-04-13
2
283 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
replace content of certain columns in a *.csv file by a defined string 12 69
Problem logging tar errors 11 58
awk sed variable in file 3 39
centos commands 6 54
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

809 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