One mail host with two NICs
First I want to say thanks to Shane and jay_plesset about my latest question "Can Messaging Server support two instances with on store? "
Now, I post the fully organized question here, hold someone can give me some advice
--
BACKGROUD:
University campus network is a big LAN, we plan to improve it's network
connection speed. the ip addresses in this LAN are all real ipv4 address
not like 192.168.*.* and so on. But the firewall between the LAN and
internet is bottleneck of net speed. People outside the campus network
must bear the slow net speed when connected to the Mail Server which
located in the campus LAN.
To improve email deliver, webmail, POP3 and SMTP speed. we wana apply a new network connection line inject to this LAN. this new IP addresses
(we consider that is 123.1.1.1) will connct to the INTERNET directly and
have fast speed.
PLAN:
Refer our Mail Server as "redhost".
We wanna configure redhost with two NICs, one with the campus IP address (consider as 202.115.32.222) and another is the new IP address 123.1.1.1
Redhost will have SUN Java System Messaging Server 2005Q4 on Solaris 9.
Configure redhost's Messaging Server with one domain (foo.bar.com) and
all email services such as POP3,smtp,webmail listen on both NICs.
Configure DNS server, make domain foo.bar.com 's MX record point to both
NICs' IP addresses.
Configure DNS server multiview fuction: Clients in the campus network
will get 202.115.32.222 when query "foo.bar.com" at DNS server, and
Clients outside the campus will get 123.1.1.1 for "foo.bar.com".
TARGET:
Mail servers inside the campus will deliver the mails to 202.115.32.222
but outside mail server will deliver mails to 123.1.1.1 . fully enjoy
the fast network connection. (This is the contribution of DNS server's
multiview fuction)
redhost use 202.115.32.222 NIC deliver emails to "@tsinghua.edu.cn",
"@pku.edu.cn" such and so on, we can configure this target domains list
later.
redhost will use 123.1.1.1 NIC deliver emails to other domain. such as
@nasa.gov.
Clients inside the campus use 202.115.32.222 as their POP3,SMTP,webmail host.
Clients outside the campus use 123.1.1.1 as their POP3,SMTP,webmail host.
(This is the contribution of DNS server's multiview fuction also)
QUESTTIONS:
1, Can double IP addresses fix this network slow problem? Will all the
emails arrive to redhohst correctly?
2, Will Messaging Server deliver mails to different target domain with
separate NIC? and how? will route table in solairs do some help?
3, Can we make sure that the emails sent from redhost will not consider
as SPAM?
[2855 byte] By [
cnDollar] at [2007-11-26 10:26:27]

# 1
QUESTTIONS:
1, Can double IP addresses fix this network slow problem? Will all the
emails arrive to redhohst correctly?
If you have limited network bandwidth, simply adding a network card isn't likely to fix that. Adding additional bandwidth or more connections may help.
You may actually find that what appears to be slow network issues are really not network issues, but slow DNS issues. It helps to be truly sure you're solving the real problem....
2, Will Messaging Server deliver mails to different target domain with
separate NIC? and how? will route table in solairs do some help?
Messaging Server, by default, doesn't really care about multiple NIC's. You can configure it to use either or both.
3, Can we make sure that the emails sent from redhost will not consider
as SPAM?
Well, that certainly depends on how things check for spam, no?
I would configure your system to send mail out from your external NIC, using a real fqdn.
# 2
Hi Jay,Thank you very much.
About your second replay:
>>Messaging Server, by default, doesn't really care about multiple NIC's. You can configure it to use either or both.
will Messaging Server's Job Control or Channel concept do some help?
And I will deploy Messaging Server on sun cluster 3.1 environment. as adminstrator guid said, I have to bind a address on the Server , msg_svr_base/sbin/ha_ip_config
scripte will edit msg_svr_base/config/dispatcher.cnf
and msg_svr_base/config/job_controller.cnf
. it will change configutilservice.listenaddr
and service.http.smtphost
also.
It means that I Messaging Server will only listen on one IP address (Logical host ) in this box:
#netstat -an |grep 25
will show :
123.3.2.3.25*.*
but not:
*.25*.*
If I have to do that , the other NIC will not work with my Messaging Server :(
that's a bad information. maybe my double NICs solution will not work under sun cluster enviroment.
thanks for any advice.
Ryan
# 4
Hi jay,thank you very much for your fast reply :)
>>for cluster, set these to the virtual ip that the cluster uses.
I have two NICs, means this machine have two logical host ip addresses .
how can messaging server bind two ip adddresses at same time?
for example: this machine's two logical (virtual) NIC ip are 111.1.1.1 and 222.2.2.2
and I wanna got this after "#netstat -an |grep 25"
111.1.1.1.25*.*
222.2.2.2.25*.*
but not
*.25*.*
But when I use configutil to change "configutilservice.listenaddr" and "http.smtphost" found they can only accept ONE IP address.
mean's
111.1.1.1.25*.*
or
222.2.2.2.25*.*
there will always one NIC not work with messaging server. :(
If I keep "configutilservice.listenaddr" and "http.smtphost" as default , Messaging server will listen on all ip addresses.means"#netstat -an |grep 25" display :
*.25*.*
I'm not sure messaging server can work smoothly under sun cluster if it do not bind one virtual ip.
Thanks for any advice
Ryan
# 5
Yes, the two settings you are trying to change accept only one address.
However, you need to understand exactly what these settings do, before you complain that it's not doing what you want.
service.listenadd has nothing to do with SMTP. It's where POP, IMAP, and HTTP listen. If you set nothing there, the system will listen to all NIC and ip addresses. What do you want, here?
service.http/smtphost sets where Webmail SENDS mail. Set it to one good SMTP ip address. If you set it to nothing, then webmail sends to localhost.
Messaging Server works very very well under sun cluster. Many customers run it so.