LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sendmail - send email on different IP addresses (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-send-email-on-different-ip-addresses-614114/)

dalemcd 01-16-2008 08:15 PM

sendmail - send email on different IP addresses
 
Hi all,

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.

Thanks,
Dale

acid_kewpie 01-17-2008 02:00 PM

that's not going to be possible from the sending side. you can control what ip addresses are listened on, but it's really none of it's business what IP it sends *from*... you could use logic as described here http://www.linuxquestions.org/questi...s-help-613978/ but to want to round robin over aliased IP addresses really seems to make no sense whatsoever. I really can't imagine a scenario in a real world environment when you'd actually have any reason to do that.


All times are GMT -5. The time now is 03:21 AM.