LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-11-2010, 06:59 AM   #1
ahamedoaa
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
configure multiple smart hosts


Dear All,

We have a requirement to configure multiple email gateways, for mail accounts configured on linux server. the application will trigger mails (bulk mails) and we would like to configure multiple email gateway to be used.

we decided to do it this way.

In dns we would create MX records like

yourdomain.com. 3600 IN MX 20 realmailserver1.yourdomain.com.
yourdomain.com. 3600 IN MX 20 realmailserver2.yourdomain.com.

where realmailserver1.yourdomain.com. and realmailserver2.yourdomain.com. will be our email gateway.

and internally on our linux server (from which mail is sent) if i specify multiple smart hosts like

define(`SMART_HOST',`esmtp:realmailserver1:realmailserver2')dnl

kindly suggest if this is the correct way.

Thanks
 
Old 03-12-2010, 04:24 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,976

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

IIRC you can use in sendmail.mc:
Code:
define(SMARTHOST `[realmailserver1.yourdomain.com]:[realmailserver2.yourdomain.com]')
One other thing you can try (if you manage the dns for the domain yourdomain.com) is to define a single smarthost, like:
Code:
define(SMARTHOST `realmailserver1.yourdomain.com')
and in the zone file use:
Code:
realmailserver1.yourdomain.com IN A 1.1.1.1
realmailserver1.yourdomain.com IN A 2.2.2.2
Regards
 
1 members found this post helpful.
Old 03-15-2010, 12:46 AM   #3
ahamedoaa
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

IIRC you can use in sendmail.mc:
Code:
define(SMARTHOST `[realmailserver1.yourdomain.com]:[realmailserver2.yourdomain.com]')
One other thing you can try (if you manage the dns for the domain yourdomain.com) is to define a single smarthost, like:
Code:
define(SMARTHOST `realmailserver1.yourdomain.com')
and in the zone file use:
Code:
realmailserver1.yourdomain.com IN A 1.1.1.1
realmailserver1.yourdomain.com IN A 2.2.2.2
Regards
Thanks for your advise, i would try to configure this way.
 
  


Reply

Tags
hosts, multiple, smart


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
how to configure sendmail as smart host cksoo Linux - Enterprise 2 01-16-2006 02:43 PM
Deploying sudo to multiple hosts rohang Linux - General 1 12-13-2005 11:21 PM
PGP across multiple hosts mr666white Linux - Security 4 08-22-2004 11:14 AM
RH:8 Multiple Hosts Problem ecroswell Linux - Newbie 9 03-17-2003 06:53 AM
multiple virtual hosts iquadri1 Linux - Networking 1 09-25-2001 11:12 AM


All times are GMT -5. The time now is 05:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration