Skip to content

vhostid.8

Manvendra Bhangui edited this page Feb 25, 2024 · 3 revisions

NAME

vhostid - Add, Modify, Delete, Display IndiMail hostid mapping

SYNOPSYS

vhostid [options] [HostId]

DESCRIPTION

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.

OPTIONS

-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

RETURN VALUE

0 if successful, 1 for any failure.

SEE ALSO

vsmtp(8), hostcntrl(8), dbinfo(8), vadduser(1), vgroup(1), IndiMail(7)

Clone this wiki locally