IP Route modification
Posted on 2009-04-02
We use qmail on our server. We wanted to change the outgoing IP for qmail. We read a solution to this where you change the default IP address of outgoing connections. This was accomplished by using the following command:
# /sbin/ip route change default via ***.***.***.*** dev eth0 src yyy.yyy.yyy.yyy.
Upon restarting qmail, this fixed our problem; outgoing mail showed the correct IP address. However, upon server reboot, it restores to the initial configuration. Any idea why and how to prevent it from restoring to the default? Any feedback is greatly appreciated.