LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2009, 08:06 AM   #1
babak83
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Question postfix with multiple virtual hosts and IPs


Hi every one



I have a server with 3 IP based virtual hosts in it .(I am using Apache as web server) one of these websites is used for email marketing and two other sites are just normal sites that send emails to site users etc...

I also have 7 IP addresses in the server and using only 3 of them:

site1.com : 100.100.100.1(ip 1)
site2.com : 100.100.100.2(ip 2)
site3.com : 100.100.100.3(ip 3)

now the problem is that when I send email from each of the sites by the help of a script like PHP , the sender IP shown in the mail header is my server's main ip address(ip 1) . I want emails sent from server 1 to be shown as sent from ip1 ,emails sent from server 2 to be shown as sent from ip2 and go on


how may I solve this problem ?

Thank you all in advance
 
Old 08-23-2009, 05:24 PM   #2
babak83
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
No reply ?!
 
Old 08-24-2009, 01:24 AM   #3
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
As far as I know postfix will use the IP bound to the main external interface (e.g. eth0) when sending. You can set it up to listen on different IP with "inet_interfaces" in main.cf if you like. Is this what your looking for?
 
Old 08-26-2009, 02:39 PM   #4
babak83
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for your reply . but I dont mean that as I mentioned in previous post I want postfix to send via different ip addresses which each ip address is used for a virtual web host


Thank you again for your kind attention
 
  


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
Virtual IPs and Postfix SMTP msound Linux - Server 7 10-30-2008 03:22 AM
lighttpd: multiple virtual hosts? neocookie Linux - Software 8 03-27-2006 11:37 PM
Postfix + Virtual Hosts Problem vbfischer Linux - Networking 1 03-30-2005 09:42 PM
Simulating multiple virtual IPs. vsg123 Linux - Networking 2 07-17-2003 02:06 PM
multiple virtual hosts iquadri1 Linux - Networking 1 09-25-2001 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:23 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