Skip to main content

How to Configure a Command Action for a System Event

A Command Action allows the SmarterMail system to automatically execute a specific command or script when a system event occurs. This feature is used by System Administrators to automate administrative tasks, such as restarting services or running...

A Command Action allows the SmarterMail system to automatically execute a specific command or script when a system event occurs. This feature is used by System Administrators to automate administrative tasks, such as restarting services or running maintenance scripts, in response to specific system conditions.

Before you begin

You will need:

  • System Administrator access to the SmarterMail management interface.

  • A defined system event to trigger the action.

  • The specific command or script path you wish to execute.

Configure a Command Action

  1. Log in to the SmarterMail administration interface.

  2. Navigate to System Administration > System Events.

  3. Select the specific event you wish to configure.

  4. Locate the Command Action section.

  5. Enter the command or the full path to the script in the Command field.

  6. Provide a description of the action in the Description field to identify the purpose of the command.

  7. Click Save or Update to apply the changes.

Confirm the result

  • The system will now trigger the specified command automatically whenever the associated system event occurs.

  • You can verify the execution of the command by checking the SmarterMail system logs or the output of the specific script.

Limitations

The command must be executable by the system user account running the SmarterMail services. If the command requires specific environment variables or permissions not held by the service account, the action may fail to execute.

Did this answer your question?