
June 26th, 2009, 02:04 PM
|
|
Registered User
|
|
Join Date: Dec 2008
Posts: 12
Time spent in forums: 1 h 26 m 15 sec
Reputation Power: 0
|
|
|
Change sending ip in Postfix
I have postfix installed on my dedi with muliple ip's. I've added the extra ip's as "virtual interfaces" within network configuration in webmin, so postfix can access them.
Now, I need to have outgoing mail from postfix send from any given one of the virtual ip's that I request. In postfix, it seems logical to change:
let's say my secondary ip is 1.2.3.4 and resolves to host.abc.com, with rdns and ptr records aligned as well.
(internet hostname of this mail system) myhostname = host.abc.com
(network interfaces for receiving mail) inet_interfaces = 1.2.3.4
(domain to use in outbound mail) myorigin = host.abc.com
(domain to receive mail for) mydestination = host.abc.com, localhost.abc.com, ,localhost
With these changed my mail headers still claim it's coming from the server main ip, not the virtual ip
|