Step 6. Selecting the type of integration with the mail server

23 May 2024

ID 169362

You can perform automatic or manual before-queue integration of KSMG with Exim using a dynamically linked library (dlfunc) or Postfix.

The initial configuration script sets the working directory paths depending on the value of the PrivateTmp setting in the settings of the Exim systemd service:

  • If PrivateTmp is set to true, KSMG email messages are saved in the /var/opt/kaspersky/ksmg/tmp/ksmg_filter directory.
  • If PrivateTmp is set to false or not specified, KSMG email messages are saved in the /tmp/ksmg_filter directory.

After integration is complete, modifying the value of the PrivateTmp setting is not allowed because this can disrupt the normal operation of the mail server.

To perform automatic integration of KSMG with the mail server:

  1. Enter the number specified next to the name of the relevant mail server.
  2. Press ENTER.
  3. If you selected Postfix, select the integration type. Possible values: SMTP proxy (before-queue), Milter (before-queue).
  4. If you want to confirm the selected mail server configuration, enter the number for 'yes'.
  5. If you want to edit mail server settings, enter the number for 'Change MTA'.

    This takes you back to step 1 where you can select a different mail server or manual integration with Exim and specify your mail server configuration settings as necessary.

To select manual integration of KSMG with the mail server:

  1. Enter the number specified next to the option Manual integration.
  2. Press ENTER.

Subsequently you can perform manual integration with the Exim mail server.

During automatic integration, backup copies of Exim configuration files are created with names like *ksmg-install.backup. You can find the backup configuration files using the following command:
find /etc/exim* -type f -name *ksmg-install.backup=

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.