LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2008, 09:15 PM   #1
dalemcd
LQ Newbie
 
Registered: Jan 2008
Location: Pensacola, Florida
Posts: 1

Rep: Reputation: 0
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
 
Old 01-17-2008, 03:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail-send complains about ALL email addresses stabu Linux - Server 4 02-03-2007 04:43 PM
Can you send a single email to all addresses in the addressbook under kmail/outlook? JBailey742 Linux - Software 2 07-11-2006 05:51 PM
qmail wont send email to addresses not in my domain robmainella Linux - Software 2 02-02-2004 06:37 PM
Problem using Sendmail to email certain addresses sethen Linux - Networking 1 11-19-2003 11:26 AM
Sendmail unable to send to internal addresses Nico Linux - Networking 3 09-19-2003 07:03 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration