Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


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

Rep: Reputation: 30
Sendmail configuration issue

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, 10:05 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!



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 configuration cjagdish69 Linux - Software 0 07-25-2006 07:39 AM
sendmail configuration Uday123 Red Hat 2 01-18-2006 10:57 AM
Sendmail Configuration Issue AquilaHosting Fedora 0 03-30-2005 08:04 PM
Sendmail configuration MichaelING AIX 0 07-02-2004 04:23 AM
Sendmail configuration lapthorn Linux - Newbie 2 12-09-2003 08:13 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:24 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
Open Source Consulting | Domain Registration