Kaspersky Secure Mail Gateway

Starting initial configuration in automatic mode

July 3, 2024

ID 67381

You can perform the initial configuration of KSMG in automatic mode.

The initial configuration scenario in automatic mode involves the following steps:

  1. Creating a configuration file with responses to the prompts of the initial configuration script

    This can be achieved using the following command:

    /opt/kaspersky/ksmg/bin/setup.py --create-auto-install=<full path to the file for saving settings>

    You cannot create a configuration file with responses a node on which manual initial configuration has been performed.

  2. Editing the address of the node you are configuring

    The configuration file with responses contains the network settings of the node on which the file is created. To configure KSMG on another node, you must manually edit the configuration file to replace the IP address of the current node with the IP address of the node that you want to configure. If necessary, you must also change the port numbers of the node.

  3. Starting the initial configuration of KSMG in automatic mode

    This can be achieved using the following command:

    /opt/kaspersky/ksmg/bin/setup.py --auto-install=<full path to the file with the saved settings>

    If you want to use the password from the ADMINISTRATOR_PASSWORD environment variable for the administrator account, run the following command:

    /opt/kaspersky/ksmg/bin/setup.py --auto-install=<full path to the file with the saved settings> --administrator-password-from-environment

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.