Skip to content

vdeloldusers.8

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

NAME

vdeloldusers - remove inactive users

SYNOPSYS

vdeloldusers [options]

DESCRIPTION

vdeloldusers is a utility to delete inactive users or mark users who have not logged in for more than a specified number of days. When marking users as inactive, vdeloldusers moves the user records from the active authentication table indimail to the inactive authentication table indibak. For active users, it deletes unread mails older than age_in_days specified by the -u option. Unread mails are deleted only from the inbox.

OPTIONS

-v
Sets verbose mode while vdeloldusers is operating

-d domain_name
virtual domain for which vdeloldusers is to be run.

-a age_in_days
Delete accounts older than this date. Default is 2 months or 60 days)

-u age_in_days
Delete mails older than this date. Default is 1 months or 30 days. Specifying the age as -1 disables this option.

-t *age_in_days *
Deletes trash for users who have logged in for the last 'age_in_days' days.

-f
Make vdeloldusers run faster by skipping stat() system call done on Maildir/cur (for ensuring while deleting a user, if a user becomes active). By specifying this option you run the risk of deleting inactive users who may become active while vdeloldusers is running.

-p
Purge entry from Database. The user, home directories and all files pertaining to the user are removed from the system. All records in IndiMail tables are additionally removed.

-i
Mark the user as Inactive. The user's authentication records are moved from the active table indimail to to the inactive table indibak. Additionally, INACT record is set for the user in the lastauth table.

-r
Report only. This option causes vdeloldusers to display the actions it would take but does not actually take the action.

RETURN VALUE

0 if all steps were successful, non-zero otherwise. If any of the steps fail, a diagnostic message is printed.

SEE ALSO

vdeluser(8)

Clone this wiki locally