Discussion in 'Plesk for Linux - 8.x and Older' started by lpittman, Dec 11, 2007.
Hey everyone, Is it possible to specify which IP outgoing mail is sent on? Luke
use swsoft kb actually http://kb.swsoft.com/en/1190
Thanks man - I had a look at it and checked out my server with the IP ROUTE command ... but I am too afraid to break anything. Here is my output - can you suggest the right command for me? --- [root@server ~]# ip route 18.104.22.168/24 dev eth1 proto kernel scope link src 22.214.171.124 126.96.36.199/24 dev eth1 proto kernel scope link src 188.8.131.52 184.108.40.206/24 dev eth1 proto kernel scope link src 220.127.116.11 169.254.0.0/16 dev eth1 scope link default via 18.104.22.168 dev eth1 src 22.214.171.124 default via 126.96.36.199 dev eth1 [root@server ~]# --- Thanks Edit - I'd like everything to route through 188.8.131.52
There's another way to do this (at least it has worked for me in the past). The IP used for outgoing connections is normally the first IP allocated (e.g. that of eth0 as opposed to eth0:1/2/3/4/5/6 or whatever). So a quick edit of your /etc/sysconfig/network-scripts/ifcfg-eth0 and so on, swapping the IP in that with whichever other file has the one you want to go out on should do the trick. You'll need to do a "service network restart" afterwards. Please be very careful though. It is easy to screw things up and this may not work on your distro anyway. So don't blame me if it all goes horribly wrong :-( Faris.
Separate names with a comma.