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 ;) |
No reply ?! :banghead:
|
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?
|
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;) |
All times are GMT -5. The time now is 08:18 PM. |