Re: [exim] Change default gateway

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tom Kistner
Date:  
À: exim-users
Sujet: Re: [exim] Change default gateway
Ted Cooper schrieb:

> Oscar Mas wrote:
>> I have two dsl and i'd like change the default gateway of exim.


> To change the source interface of outgoing smtp connections. Throw into
> your smtp transport.
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch30.html#id606642


In addition, make sure the traffic leaves the system on the correct
interface. You probably need source policy routing to do that. On Linux:

ip rule add from $EXIM_IP table 201
ip route add default via $EXIM_DEFAULT_GW_IP dev $EXIM_INTERFACE_NAME
table 201

/tom