Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Change Qmail Outbound IP Address on Plesk Server  (Read 3184 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Change Qmail Outbound IP Address on Plesk Server
« on: November 07, 2013, 05:19:40 pm »
If we want to change the qmail interface IP (for example from 192.168.0.1 to 192.168.0.2) below steps would be helpful for you :-

Check the current interface IP and gateway IP by typing the following from the CLI.

#/sbin/ip route

We gets an output like -

=====
x.x.x.x/27 dev eth0 scope link metric 1002
x.x.x.x/16 dev eth0 proto kernel scope link src 192.168.0.1
default via 192.168.0.20 dev eth0 proto static
=====

Here the interface ip is 192.168.0.1 and gateway IP is 192.168.0.20

Use the following command to change the default qmail IP from 192.168.0.1 to 192.168.0.2

/sbin/ip route change default via 192.168.0.20 dev eth0 src 192.168.0.2


Send a test email and check the header to see if the mail coming from new IP.
« Last Edit: November 07, 2013, 05:25:03 pm by Vinil »