{"id":1118,"date":"2011-05-01T13:27:26","date_gmt":"2011-05-01T10:27:26","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1118"},"modified":"2011-05-01T17:44:30","modified_gmt":"2011-05-01T14:44:30","slug":"block-spam-with-russian-encoding-using-spamassassin","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/","title":{"rendered":"Block Spam with russian encoding using spamassassin"},"content":{"rendered":"<p>Lately the amount of spam with russian encoding\/charset that I was getting had increased significantly. Spamassassin&#8217;s configuration options &#8220;ok_locales&#8221; and &#8220;ok_languages&#8221; were not enough because I didn&#8217;t want to whitelist some language, but I just wanted to blacklist some.<\/p>\n<p>So the solution for my problems was the addition of the following lines in the configuration of spamassassin:<br \/>\n<pre><code2 class=\"preserve-code-formatting\">header LOCAL_CHARSET_RUSSIAN Subject:raw =~\/\\=\\?koi8-r\\?\/i\nscore LOCAL_CHARSET_RUSSIAN 7\ndescribe LOCAL_CHARSET_RUSSIAN Contains russian charset that is not acceptable<\/code2><\/pre><\/p>\n<p>If you want to add even more charsets:<br \/>\n<pre><code2 class=\"preserve-code-formatting\">header LOCAL_CHARSET_BLOCKED Subject:raw =~\/\\=\\?(koi8-r|windows-1251)\\?\/i\nscore LOCAL_CHARSET_BLOCKED 5\ndescribe LOCAL_CHARSET_BLOCKED Contains charsets that are not acceptable<\/code2><\/pre><\/p>\n<p>Be VERY careful with these rules if you place them in the global config (\/etc\/spamassassin\/local.cf) because if any of your users are getting emails in russian those emails will be probably marked as spam!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately the amount of spam with russian encoding\/charset that I was getting had increased significantly. Spamassassin&#8217;s configuration options &#8220;ok_locales&#8221; and &#8220;ok_languages&#8221; were not enough because I didn&#8217;t want to whitelist some language, but I just wanted to blacklist some. So the solution for my problems was the addition of the following lines in the configuration [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[5],"tags":[357,247,356,238,243],"class_list":["post-1118","post","type-post","status-publish","format-standard","hentry","category-internet","tag-charset","tag-email","tag-russian","tag-spam","tag-spamassassin"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Lately the amount of spam with russian encoding\/charset that I was getting had increased significantly. Spamassassin&#039;s configuration options &quot;ok_locales&quot; and &quot;ok_languages&quot; were not enough because I didn&#039;t want to whitelist some language, but I just wanted to blacklist some. So the solution for my problems was the addition of the following lines in the configuration\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#article\",\"name\":\"Block Spam with russian encoding using spamassassin | Into.the.Void.\",\"headline\":\"Block Spam with russian encoding using spamassassin\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2011-05-01T13:27:26+03:00\",\"dateModified\":\"2011-05-01T17:44:30+03:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#webpage\"},\"articleSection\":\"Internet, charset, email, russian, spam, spamassassin\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/internet\\\/#listItem\",\"name\":\"Internet\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/internet\\\/#listItem\",\"position\":2,\"name\":\"Internet\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/internet\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#listItem\",\"name\":\"Block Spam with russian encoding using spamassassin\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#listItem\",\"position\":3,\"name\":\"Block Spam with russian encoding using spamassassin\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/internet\\\/#listItem\",\"name\":\"Internet\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/\",\"name\":\"Block Spam with russian encoding using spamassassin | Into.the.Void.\",\"description\":\"Lately the amount of spam with russian encoding\\\/charset that I was getting had increased significantly. Spamassassin's configuration options \\\"ok_locales\\\" and \\\"ok_languages\\\" were not enough because I didn't want to whitelist some language, but I just wanted to blacklist some. So the solution for my problems was the addition of the following lines in the configuration\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/05\\\/01\\\/block-spam-with-russian-encoding-using-spamassassin\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2011-05-01T13:27:26+03:00\",\"dateModified\":\"2011-05-01T17:44:30+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Block Spam with russian encoding using spamassassin | Into.the.Void.","description":"Lately the amount of spam with russian encoding\/charset that I was getting had increased significantly. Spamassassin's configuration options \"ok_locales\" and \"ok_languages\" were not enough because I didn't want to whitelist some language, but I just wanted to blacklist some. So the solution for my problems was the addition of the following lines in the configuration","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#article","name":"Block Spam with russian encoding using spamassassin | Into.the.Void.","headline":"Block Spam with russian encoding using spamassassin","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2011-05-01T13:27:26+03:00","dateModified":"2011-05-01T17:44:30+03:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#webpage"},"articleSection":"Internet, charset, email, russian, spam, spamassassin"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/#listItem","name":"Internet"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/#listItem","position":2,"name":"Internet","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#listItem","name":"Block Spam with russian encoding using spamassassin"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#listItem","position":3,"name":"Block Spam with russian encoding using spamassassin","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/#listItem","name":"Internet"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/","name":"Block Spam with russian encoding using spamassassin | Into.the.Void.","description":"Lately the amount of spam with russian encoding\/charset that I was getting had increased significantly. Spamassassin's configuration options \"ok_locales\" and \"ok_languages\" were not enough because I didn't want to whitelist some language, but I just wanted to blacklist some. So the solution for my problems was the addition of the following lines in the configuration","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2011-05-01T13:27:26+03:00","dateModified":"2011-05-01T17:44:30+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"1118","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:56:20","updated":"2026-10-21 09:49:39","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/\" title=\"Internet\">Internet<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBlock Spam with russian encoding using spamassassin\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"Internet","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/internet\/"},{"label":"Block Spam with russian encoding using spamassassin","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/05\/01\/block-spam-with-russian-encoding-using-spamassassin\/"}],"views":16234,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1118"}],"version-history":[{"count":5,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions"}],"predecessor-version":[{"id":1123,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions\/1123"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}