LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2013, 12:09 PM   #1
seamore
Member
 
Registered: Sep 2009
Posts: 83

Rep: Reputation: 1
Sending email with one IP vs another


I am going to set up my web/mail server with a second network card which will be tied to its own IP and domain name.

How do I direct sendmail to send out an email as coming from IP#2, domain #2 not IP #1, domain #1?
 
Old 01-26-2013, 05:23 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
The only way to affect which IP address sendmail uses for outbound traffic, is to bind the sendmail process to a specific IP address. But if you do that, all outbound mail will be sent using that address.

If sendmail is bound to all addresses (the defauls setting), the routing table decides where the traffic goes, which in turn determines the source address.

I guess you could run several instances of sendmail, each bound to a specific IP address. It wouldn't look pretty, but it could work.

Why the need for a different source IP address for mail from different senders?
 
Old 01-26-2013, 10:43 PM   #3
seamore
Member
 
Registered: Sep 2009
Posts: 83

Original Poster
Rep: Reputation: 1
Thank you the reply.
The reason I'm doing this is that a while back someone hacked my server and sent tons of span as if it was me. Now my primary domain/IP is black listed among some major providers and I have to send out legitimate email for business purposes. Its fine it I have to make all outbound email tied to one IP/domain. I made the domain names similar.

Last edited by seamore; 01-26-2013 at 10:45 PM.
 
  


Reply



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
Problem sending email through new email server bigben747 Linux - Server 3 01-26-2009 05:16 PM
sending email cambie Linux - Software 1 11-20-2004 06:02 PM
sending email to an ip pyu7 Linux - Software 4 10-08-2004 02:46 PM
sending email GraemeK Linux - Networking 1 08-24-2003 05:14 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 PM.

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
Open Source Consulting | Domain Registration