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:
- 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>
- Open the XML file for editing.
- 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.
- In the
<type>
subsection, set the ExternalAccount value. - 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>
- Save the changes made.
- 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>