I currently have multiple network interfaces on my server. When I try to send mail, through telnet, the IP which i connect to, isn't showing up as the source ip, but the ip of eth0 is showing. I have set up multiple IP's like this: eth0:0, eht0:1 etc. When i changed the smtp_bind_address i actually got the ip which i connected through as the source ip of the email, but when i added multiple entries to this setting it couldn't send. Also when changing inet_interfaces it only works with one ip.
Anyone who can help me make it set the source IP to the one i connect to, when sending emails?