-
-
Notifications
You must be signed in to change notification settings - Fork 3
vhostid.8
vhostid - Add, Modify, Delete, Display IndiMail hostid mapping
vhostid [options] [HostId]
vhostid displays the hostid to IP address mapping used by IndiMail for clustered domains. Each host in a clustered setup is assigned a unique hostid with the help of vhostid. Subsequently, vhostid can be used to display, insert, update or delete these mappings. This information is maintained in the MySQL table host_table.
When a user is added to a domain in a clustered setup, a hostid is needed to be alloted to the user. This information is kept in the MySQL table hostcntrl. Thus locating any user's mailstore involves querying the hostid from the table hostcntrl and susbequently the IP address from the table host_table.
-v
Sets Verbose Option
-s
Display hostid Mappings for all hosts (if hostid is not given on command
line. Else displays the hostid to IP Address mapping only for the host
with id HostId.
-d HostId
Delete IP address Mapping for HostId
-i Ipaddr
Maps IP address Ipaddr to hostid HostId
-u New_Ipaddr
(Map HostId to New_Ipaddr) Changes IP address for hostid Hostid to
IP address New_Ipaddr
0 if successful, 1 for any failure.
vsmtp(8), hostcntrl(8), dbinfo(8), vadduser(1), vgroup(1), IndiMail(7)