Does anyone know how to make sendmail use an specific IP when sending
out email?
I have multiple IP based virtual sites in the same machine, and I use
the network traffic (IP packet accounting) data to charge them for
bandwidth usage. But DNS and email traffic is difficult to attribute to
each site. Incoming mail and DNS are not a problem, since that is fixed
by setting their own nameservers and mailserver names to their IP. But
in the case of outgoing DNS and mail traffic it is sent from the main IP
of the machine. I do not care about DNS since it is not much and will
just have to fall as overhead costs, but outgoing mail is significant,
since each site contacts their customer base regularly.
So does anyone know how to configure sendmail to bind to an specific IP
when sending email out, for example, foo1.com's IP when sending email on
behalf of foo1.com, and to foo2.com's IP when sending email on behalf of
foo2.com?
Thanks, any help would be greatly appreciated.
--
Eugenio Diaz, BSEE/BSCE
Linux Engineer
[EMAIL PROTECTED]