sendmail - send email on different IP addresses
I have sendmail 8.13.4 running on RedHat4 with 3 IP addresses defined ( eth0 = x.x.x.206, eth0:0 = x.x.x.204, eth0:1 = x.x.x.205). I'm pretty new to configuring sendmail.
I have a C program that sends email notification messages via the sendmail() routine. How do I get sendmail to send emails on alternating network interfaces (different IP's). Automatic round-robin would be nice.
Or perhaps, defining one sendmail.cf for each IP (named: sendmail_204.cf, etc), then have the C program use the "-C /etc/mail/sendmail_204.cf" option to specify which configuration file to use. The problem here is that I do not know how to decalre the IP address inside the sendmail_204.cf file.