Adding a sender or recipient from an external directory service to rules

July 4, 2024

ID 60931

To add a sender / recipient from an external directory service to a message processing rule:

  1. Export the rule settings to an XML file using the command:

    # /opt/kaspersky/klms/bin/klms-control \

    --get-rule-settings <rule ID> -f <name of the rule settings file>

  2. Open the XML file for editing.
  3. Create new <item> section in the <sender> subsection (to add a sender) or <recipient> subsection (to add a recipient) of the <belongingCriteria> section.

    If you need to add several sender and recipient email addresses, each new email address must be in a separate <item> section, typed in a new string of the settings file.

    Both the message sender and recipient must be specified in the rule.

  4. In the <type> subsection, set the ExternalAccount value.
  5. In the <value> subsection, set the CN value from LDAP settings.

    Example:

    <belongingCriteria>

    <sender>

    <item>

    <type>EMailMask</type>

    <value>*</value>

    </item>

    </sender>

    <recipient>

    <item>

    <type>ExternalAccount</type>

    <value>CN=test10,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=sbs2k8,DC=local</value>

    </item>

    </recipient>

    </belongingCriteria>

  6. Save the changes made.
  7. Import the rule settings from an XML file using the command:

    # /opt/kaspersky/klms/bin/klms-control \

    --set-rule-settings <rule ID> -f <name of the rule settings file>

');
Kaspersky Endpoint Security for Business Advanced: Adaptive security of your company
Web and device controls. Data encryption. Centralized and convenient management from a single console.
');
Kaspersky Premium Support (MSA): High‑priority incident processing
Telephone and web ticket support. Fast response, monitoring and health check. Submit a request and activate the contract (MSA).