Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-07-2006, 06:51 PM   #1
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Rep: Reputation: 30
Sendmail 8.12.10 setup

Hi all,

I have a problem which I need help with.

I have two sendmail servers (eg. & both running Sendmail 8.12.10.

Both have public IP address, and DNS is configured so that has a lower MX record value than bill also runs an IMAP server.

Day to day, mail is delivered to bill and is retrieved using my IMAP client. If bill gets disabled for any reason, all incoming mail is sent to ben.

However, I'm trying to find a way so that when bill comes back online, all mail sitting on ben is sent to that server automatically.

Does anyone know how I might configure Sendmail to do this?

Many thanks,

Old 08-21-2006, 11:06 AM   #2
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Well now I have the answer, I thought I would take the time to come back and share.

The answer is pretty easy really. Once you have the MX records set up, all you have to do is set the 'DS' option is on the secondary server to point to the primary.

So in the example above, I would edit on to say:

This tells sendmail to use bill as a smart host. And if you don't want sendmail to look the address up in DNS (eg. the address is already defined in your hosts file) then you would use:

You can also replace the FQDN with an IP address.

One last thing, you also have to add your domain (in this case to your access file - otherwise Sendmail will think you are trying to relay through it.

To do this, add:

Code:          OK
to your access file. Don't forget to then turn the file into access.db by using:

makemap hash access.db < access
Then reboot and that should be all there is to it!

Old 09-29-2006, 05:01 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
MX records

Based on this problem what will I put on my SMTP and POP3 email client? How do I setup my MX records?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail with PHP setup!!! NaX Linux - Software 2 02-04-2005 09:08 AM
How to setup sendmail? alexr186 Linux - Software 4 12-19-2003 06:01 PM
sendmail setup newbie complus Linux - Software 4 11-12-2003 11:07 PM
Sendmail Setup /etc/opiekeys? micxz Linux - Software 1 10-03-2003 09:24 PM
sendmail setup Finlay Linux - Networking 16 03-18-2003 03:00 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration