[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] Change local interface address



Hello!

On Thu, 14. May 2009, 18:16:32 -0300, Wendell Almeida wrote:
> I have 2 networks address with real IP in my server.
> eth1: 200.200.200.200
> eth2: 200.200.100.100
> 
> When I send a mail with msmtp, it uses the first network card eth1 whith 
> IP 200.200.200.200.
> But, I need to use the other IP 200.200.100.100.
> In ping, for exemple, I can change the interface: ping -I eth1 host or 
> ping -I eth2 host.
> Is it possible?

This is currently not possible. You would have to extent the
open_socket() function in src/net.c.

Martin