Skip to content

hostsync.8

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

NAME

hostsync - Synchronize user additions/deletions across cluster

SYNOPSYS

hostsync [ options ] -d virtual_domain

DESCRIPTION

hostsync is a utility which synchronizes user additions and deletions between the mailstore and the control host in a clustered domain setup. It synchronizes the table indimail and the hostcntrl table on the control Host. This utility should be setup in cron(1) to be run every 30 minutes by the system administrator. Only one instance of hostsync can be run at a time.

Normally the tables indimail and hostcntrl should be synchronized. But in case of problems like the control host being down, or the database on the control Host being down, the tables can get out of sync. hostsync corrects all records that have changed on the mailstore, but have not got applied on hostcntrl by looking at the pw_uid field of the table indimail or indibak. Records which are synchronized have the value 1. Value of pw_uid other than 1 indicate the following

pw_uid Value	Description
------------	-----------

2	User not added to hostcntrl
4	User not deleted from hostcntrl

OPTIONS

-v
Sets verbose option

-d
Name of the clustered virtual domain.

RETURN VALUES

0 for success, 1 for any failure.

SEE ALSO

vadduser(1), vdeluser(1),

Clone this wiki locally