> >On Mar 3, 1:43 pm, birch...@gmail.com wrote:
>
> >> What I want to achieve are as follows:
>
> >> 1) I want the two interfaces to connect to the gateway using the two
> >> different ip's.
>
> >That will work just fine if the two IPs are on different networks.
> Well, the two ip's are on the same network. I meant to type "connect to
> the _same_ gateway, but I missed it.
So you have two interfaces to the same network. Are you bridging or
teaming? If not, stop. What you're doing already doesn't make sense.
> >> 2) I want sendmail to listen to the interface associated with the
> >> mail.xxx.com domain and also uses that address when it relay outbound
> >> mails.
>
> >When you say "use that address", do you really mean to use that
> >address or to send packets out that interface? These two are not the
> >same thing.
> Ok, I'm not too good at these terminologies, so let me explain what I
> desire. When people try to connect to my smtp server, they look up the
> address from the mx record, so there isn't much of an issue. What I
> really want is when I send outgoing mails, say I send an email to your
> machine, it would appear the connection is made from mail.xxx.com and its
> associated ip address and NOT from xxx.com and its associated ip address.
Ah, so this has nothing to do with interfaces it all. You simply want
sendmail to bind to a particular source address when it makes outgoing
connections. Google "ClientPortOptions" and the "Addr" sub-option.
> >> 3) and I wnat all other traffic, inbound and outbound, to go through
> >> the interface associate with the xxx.com address.
>
> >> How can I achieve this or is it possible?
> >> Help and thank a bunch!
>
> >Your requirements don't make sense. What is your outer problem? Why do
> >you want these things? It is quite likely that what you actually need
> >is better achieved some other way.
> Because I want mail.xxx.com and its ip address dedicated to the mail
> server only, and I want other traffic, whether it is a inbound request to
> my web server or my outbound telnet connection, etc., to appear to be made
> from xxx.com and its associated address. Does that make sense now?
I think so. Make sure the IP address for xxx.com is primary for the
interface to the network (physical or virtual, whichever one routes to
the network). Add mail.xxx.com as an alias to that network interface.
Configure sendmail to use the mail.xxx.com as its client port's bind
address. Put the mail name in your MX record.
That should do it.
DS
|