Kaspersky Secure Mail Gateway

Preparing for application installation

July 3, 2024

ID 56112

To prepare the installation of the KSMG package:

  1. Make sure that your server meets the hardware and software requirements.
  2. Download the following files from the Kaspersky website or the website of a partner company to your server:
    • KSMG installation package in DEB or RPM format, depending on your operating system.
    • KSMG localization packages in DEB or RPM format, depending on your operating system.
  3. Remove Kaspersky Security for Linux Mail Server version 10 or earlier, or KSMG version 2.1 if that version is already installed.

    Consider the following when removing the application:

    • If you manually configured the Exim or Postfix mail server when you installed the application, you must manually restore the configuration files of the mail server to their original state.
    • If integration with Kaspersky Security Center was used in the previous version of the application, you must remove the Network Agent of the previous version.
  4. Make sure that the English locale is installed in the operating system and install it if necessary.
    1. Run the following command:

      locale -a

    2. Check if the list includes the en_US.UTF-8 or en_US.utf8 locale.

      If the locale is already installed, no further action is required.

    3. If the locale is not installed, run the following commands:
      • For Red Hat Enterprise Linux, Rocky Linux operating systems:

        yum install glibc-langpack-en

      • For Ubuntu operating systems:

        apt install locales

        locale-gen en_US.UTF-8

      The locale is added to the operating system.

    4. Verify that the locale was added successfully by running the command again:

      locale -a

    The initial configuration script of the application displays the texts of the End User License Agreement and the Privacy Policy. To have them displayed correctly, make sure that your terminal supports characters of the language selected for viewing the texts of the End User License Agreement and the Privacy Policy.

  5. Disable SELinux (for Red Hat Enterprise Linux and Rocky Linux operating systems).
  6. Make sure that all necessary accesses are opened in the firewall.
  7. The initial configuration script automatically looks for an Nginx web server on your computer. For a successful discovery, make sure that the settings of your web server satisfy the conditions listed in the table below.

    Nginx web server settings

    Setting description

    When the setting is detected

    Name of the Nginx service

    The output of the 'systemctl cat nginx' utility does not include any error messages.

    Path to the Nginx executable file

    The output of the which utility contains the path to the Nginx executable file

    Path to the directory with Nginx configuration files

    The /etc/nginx directory exists

    Path to Nginx configuration file

    The nginx.conf file exists in the /etc/nginx directory

    Path to the directory with the web sites

    The /etc/nginx directory has a 'conf.d' subdirectory

    The user that started the Nginx process

    The output of the following command:

    <path to the Nginx executable file> -T

    includes the line:

    user <user name>;

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.