Skip to Content
Browse documentation

mailtrackctrl — Command Reference

Initialize, enable, disable, clean or reset MailTrack history and collection.

Initialize, enable, disable, clean or reset MailTrack history and collection.

Requirements

Run as root on the Eenos server. Choose exactly one operation. Preserve required history before clean/reset. Administrative operations require protected database paths and exclusive maintenance locks.

Usage

The following example uses the operation described below; replace example identities and paths before use:

/usr/local/eenos/scripts/mailtrackctrl --init

Arguments and options

Argument / optionUsage and meaning
-r, --resetFlag. Remove and recreate the database; start if enabled or previously running unless flagged disabled. History and checkpoints are lost; available logs may be replayed.
-c, --cleanFlag. Clear history while preserving schema and log checkpoints.
-i, --initFlag. Initialize the database only if it does not exist.
-e, --enableFlag. Remove the disabled flag, enable and start MailTrack.
-d, --disableFlag. Create the disabled flag, disable and stop MailTrack.

-h, --help displays this parser's help. Selectors in the same mutually exclusive group cannot be combined. The installed version remains authoritative for available options.

Operational effects

--clean deletes history while preserving schema and checkpoints. --reset removes/recreates the database and loses checkpoints; available mail logs may be replayed. Enable/disable changes systemd collection state. History deletion is blocked in demo mode.

Verify the result

Check the reported database/service result and subsequent tracking. A failure can leave a previously running service stopped.

Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.

Back to Administration & Internal Tools · All command-line tools