Multiple IPs for outgoing mail to select specific IP dynamically.



Hi,
I have multiple IPs/Domain on a linux server.
For example,
eth0 is 1,2,3,4 ->domainA.com
eth0:0 is 6.7.8.9 -> domainB.com
eth0:1 is 10.11.12.13 -> domainC.com

When I send out a mail from the server and check the receiver's email
header, Received: header contains always primary IPs (eth0)
For example, Received: from [1.2.3.4] (helo=domainB.com)

I know that I can use ClientPortOptions, but I don't like to change
the Addr=x.x.x.x every time I change the domain for sender in
sendmail.cf and restart it.

Is there a way to configure changing the IPs dynamicaly based on the
hostname?
So, when I send out a mail using domainB.com, I want to sendmail
automactically insert IP (6.7.8.9) in to the header, I want to see the
IP (6.7.8.9) in Received: header in receiver's email.

I spent searching for this a week, and I still can't find a right
answers.
Would you help me on this, sendmail gurus?

Thanks.
Sam.
.



Relevant Pages

  • Suspicious network traffic.
    ... I have a RedHat 9.0 linux server. ... httpd, ssh, pure-ftpd, sendmail). ... I installed mrtg to see its eth0 traffic. ...
    (comp.os.linux.networking)
  • Re: capture traffic and save it
    ... is there a way for capture traffic in my eth0 and savi it in a file? ... the traffic must with header and payload ... scuse me for my bad english ...
    (comp.os.linux.networking)