Overview
Spam, junk, or unsolicited bulk emails can come from different sources with messages that are mostly commercial. They are not only annoying, but they can also be dangerous as they may include phishing links or attachments containing malware. At times, you may receive spam emails in the Russian language.
This article provides instructions to block spam emails that contain messages in Russian.
Solution
To add a rule to ignore every email that contains Russian characters in the subject line or body, please follow the steps below:
- Log in to your Kayako instance and go to the admin area.
- Under Email Parser, click Rules.
- Click on the New button on the right side of the screen.
- Enter the rule title.
Make sure that the following options are enabled: Email parser rule enabled and Stop processing other rules. - Click Insert Criteria and enter the following settings:
- Subject - Regular Expression -
/[А-Яа-яЁё]/u
- OR - Body - Regular Expression -
/[А-Яа-яЁё]/u
- OR - Furthermore, if only one of the email queues is affected by the spam emails, you can add an extra condition:
Email Queue - Equal to -[myqueue]@[myqueue].kayako.com
- AND
- Subject - Regular Expression -
- Under the Actions tab, enable the following options (select Yes): Ignore email, Do not send autoresponder, and Do not process notification rules.
- Click Insert to save the changes.
Note: Additionally, the email queue can be restricted to accept emails only from registered users. This email queue will accept only emails from the users with an existing user account. Hence, non-registered users will not be able to send you emails (to this queue), and they will be prompted to create an account first. For more information, please refer to the Restricting Email Queue article.