LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-08-2006, 01:40 PM   #1
brooky9999
Member
 
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. bill.test.com & ben.test.com) both running Sendmail 8.12.10.

Both have public IP address, and DNS is configured so that bill.test.com has a lower MX record value than ben.test.com. 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,


Mark.
 
Old 08-21-2006, 10:05 AM   #2
brooky9999
Member
 
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 sendmail.cf on the secondary server to point to the primary.

So in the example above, I would edit sendmail.cf on ben.test.com to say:

Code:
DSbill.test.com
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:

Code:
DS[bill.test.com]
You can also replace the FQDN with an IP address.

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

To do this, add:

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

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


Mark.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 AM.

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