LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   configure multiple smart hosts (http://www.linuxquestions.org/questions/linux-server-73/configure-multiple-smart-hosts-794673/)

ahamedoaa 03-11-2010 05:59 AM

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

bathory 03-12-2010 03:24 PM

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

ahamedoaa 03-14-2010 11:46 PM

Quote:

Originally Posted by bathory (Post 3896145)
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.


All times are GMT -5. The time now is 11:23 PM.