1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Specify which IP outgoing email uses?

Discussion in 'Plesk for Linux - 8.x and Older' started by lpittman, Dec 11, 2007.

  1. lpittman

    lpittman Guest

    Hey everyone,

    Is it possible to specify which IP outgoing mail is sent on?

  2. dirty@

    dirty@ Guest

  3. lpittman

    lpittman Guest

    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 dev eth1 proto kernel scope link src dev eth1 proto kernel scope link src dev eth1 proto kernel scope link src dev eth1 scope link
    default via dev eth1 src
    default via dev eth1
    [root@server ~]#


    Edit - I'd like everything to route through
  4. faris

    faris Guest

    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 :-(