Skip to content

ipchange.8

Manvendra Bhangui edited this page Sep 4, 2022 · 1 revision

NAME

ipchange - Modify IP Address records in IndiMail Database

SYNOPSYS

ipchange [options] table_name

DESCRIPTION

ipchange is meant for modifying IP address records in the IndiMail tables when the IP address of a host running various IndiMail services is changed. Following tables get impacted when IP address of a host gets changed.

Table	Column
--------	----------

host_table	ipaddr
dbinfo	server, mdahost
ip_alias_map	ipaddr

The control file localiphost on the host whose IP address is changed, gets impacted. The control file smtproutes on all relay servers acting as a relay for the host gets impacted.

e.g. You can use the following command to set things right in the table dbinfo

ipchange -o 202.144.76.7 -n 202.144.76.8 -c server -m dbinfo
ipchange -o 202.144.76.7 -n 202.144.76.8 -c mdahost -m dbinfo
ipchange -o 202.144.76.7 -n 202.144.76.8 -c ipaddr ip_alias_map

Please Note that ipchange changes only the logical IP address in the IndiMail's database. For the actual/physical IP address change, you will have to use the appropriate OS utility (i.e. ifconfig).

OPTIONS

-v
Sets verbose operation

-o
Existing IP address.

-n
New IP address to be set on the host.

-c
Column name of the IP address record.

-m
Modifies the table on hostcntrl.

table_name
The name of the table.

RETURN VALUE

0 for success, 1 for any failure.

SEE ALSO

IndiMail(5)

Clone this wiki locally