?
Solved

Utilizing multiple mail servers w/ sendmail

Posted on 1998-04-13
2
Medium Priority
?
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
mzito earned 2800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses
Course of the Month9 days, 8 hours left to enroll

762 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