{"id":48,"date":"2021-03-31T15:32:44","date_gmt":"2021-03-31T13:32:44","guid":{"rendered":"https:\/\/blog.walliczek.de\/?p=48"},"modified":"2021-04-01T20:25:22","modified_gmt":"2021-04-01T18:25:22","slug":"quarantaene-ordner-fuer-rspamd","status":"publish","type":"post","link":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/","title":{"rendered":"Quarant\u00e4ne Ordner f\u00fcr Rspamd"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.rspamd.com\/\">Rspamd<\/a> hat sich als Nachfolger von Amavisd und Spamassassin etabliert, weil Anforderungen wie Performance, Erkennungsrate und Erweiterbarkeit besser gel\u00f6st werden. Trotzdem gibt es noch das eine oder andere Feature, das man von Amavisd \/ Spamassassin gewohnt ist und das nicht von Haus aus bei Rspamd dabei ist &#8211; zum Beispiel einen Quarant\u00e4ne-Ordner, in den alle abgelehnten Mails verschoben werden, um sp\u00e4ter ggf. etwaige False-Positives wiederherstellen zu k\u00f6nnen.<\/p>\n\n\n\n<p>Dazu reicht es, das folgendes Skript als Datei unter dem Namen \/etc\/rspamd\/local.d\/metadata_exporter.conf anzulegen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Define custom selector(s)\n  custom_select {\n    mine = &lt;&lt;EOD\nreturn function(task)\n  local action = task:get_metric_action('default')\n  return (action == 'reject' or action == 'soft reject')\nend\nEOD;\n  }\n  custom_push {\n    mine = &lt;&lt;EOD\nreturn function (task, data, rule)\n  folder = task:get_metric_action('default')\n  folder = folder.gsub(folder, ' ', '_')\n  local rspamd_logger = require \"rspamd_logger\"\n  rspamd_logger.infox(task, 'METATEST %s', folder)\n  local rspamd_util = require \"rspamd_util\"\n  rspamd_util.mkdir('\/var\/mail\/quarantine\/' .. folder)\n  file = io.open('\/var\/mail\/quarantine\/' .. folder .. '\/' .. task:get_queue_id(), \"w\")\n  file:write(tostring(data))\n  file:close()\nend\nEOD;\n  }\n\n  rules {\n\n    quarantine {\n      selector = \"mine\";\n      formatter = \"default\";\n      backend = \"mine\";\n    }\n  }<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rspamd hat sich als Nachfolger von Amavisd und Spamassassin etabliert, weil Anforderungen wie Performance, Erkennungsrate und Erweiterbarkeit besser gel\u00f6st werden. Trotzdem gibt es noch das eine oder andere Feature, das man von Amavisd \/ Spamassassin gewohnt ist und das nicht von Haus aus bei Rspamd dabei ist &#8211; zum Beispiel einen Quarant\u00e4ne-Ordner, in den alle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[5,11],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke\" \/>\n<meta property=\"og:description\" content=\"Rspamd hat sich als Nachfolger von Amavisd und Spamassassin etabliert, weil Anforderungen wie Performance, Erkennungsrate und Erweiterbarkeit besser gel\u00f6st werden. Trotzdem gibt es noch das eine oder andere Feature, das man von Amavisd \/ Spamassassin gewohnt ist und das nicht von Haus aus bei Rspamd dabei ist &#8211; zum Beispiel einen Quarant\u00e4ne-Ordner, in den alle [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/\" \/>\n<meta property=\"og:site_name\" content=\"Matthias&#039; Technik-Ecke\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-31T13:32:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-01T18:25:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"mwalliczek\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.walliczek.de\/#website\",\"url\":\"https:\/\/blog.walliczek.de\/\",\"name\":\"Matthias&#039; Technik-Ecke\",\"description\":\"Spielereien mit Gentoo-Linux-Servern, React, Raspberry, ESP und Co.\",\"publisher\":{\"@id\":\"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.walliczek.de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage\",\"url\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/\",\"name\":\"Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke\",\"isPartOf\":{\"@id\":\"https:\/\/blog.walliczek.de\/#website\"},\"datePublished\":\"2021-03-31T13:32:44+00:00\",\"dateModified\":\"2021-04-01T18:25:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.walliczek.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quarant\u00e4ne Ordner f\u00fcr Rspamd\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f\"},\"headline\":\"Quarant\u00e4ne Ordner f\u00fcr Rspamd\",\"datePublished\":\"2021-03-31T13:32:44+00:00\",\"dateModified\":\"2021-04-01T18:25:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage\"},\"wordCount\":95,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f\"},\"keywords\":[\"rspamd\",\"SPAM\"],\"articleSection\":[\"Server\"],\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f\",\"name\":\"mwalliczek\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.walliczek.de\/#personlogo\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5920ffa7140bf7a615c7d7f0c3fd9b2c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5920ffa7140bf7a615c7d7f0c3fd9b2c?s=96&d=mm&r=g\",\"caption\":\"mwalliczek\"},\"logo\":{\"@id\":\"https:\/\/blog.walliczek.de\/#personlogo\"},\"sameAs\":[\"https:\/\/blog.walliczek.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/","og_locale":"de_DE","og_type":"article","og_title":"Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke","og_description":"Rspamd hat sich als Nachfolger von Amavisd und Spamassassin etabliert, weil Anforderungen wie Performance, Erkennungsrate und Erweiterbarkeit besser gel\u00f6st werden. Trotzdem gibt es noch das eine oder andere Feature, das man von Amavisd \/ Spamassassin gewohnt ist und das nicht von Haus aus bei Rspamd dabei ist &#8211; zum Beispiel einen Quarant\u00e4ne-Ordner, in den alle [&hellip;]","og_url":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/","og_site_name":"Matthias&#039; Technik-Ecke","article_published_time":"2021-03-31T13:32:44+00:00","article_modified_time":"2021-04-01T18:25:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"mwalliczek","Gesch\u00e4tzte Lesezeit":"1 Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.walliczek.de\/#website","url":"https:\/\/blog.walliczek.de\/","name":"Matthias&#039; Technik-Ecke","description":"Spielereien mit Gentoo-Linux-Servern, React, Raspberry, ESP und Co.","publisher":{"@id":"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.walliczek.de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"WebPage","@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage","url":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/","name":"Quarant\u00e4ne Ordner f\u00fcr Rspamd - Matthias&#039; Technik-Ecke","isPartOf":{"@id":"https:\/\/blog.walliczek.de\/#website"},"datePublished":"2021-03-31T13:32:44+00:00","dateModified":"2021-04-01T18:25:22+00:00","breadcrumb":{"@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.walliczek.de\/"},{"@type":"ListItem","position":2,"name":"Quarant\u00e4ne Ordner f\u00fcr Rspamd"}]},{"@type":"Article","@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#article","isPartOf":{"@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage"},"author":{"@id":"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f"},"headline":"Quarant\u00e4ne Ordner f\u00fcr Rspamd","datePublished":"2021-03-31T13:32:44+00:00","dateModified":"2021-04-01T18:25:22+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#webpage"},"wordCount":95,"commentCount":1,"publisher":{"@id":"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f"},"keywords":["rspamd","SPAM"],"articleSection":["Server"],"inLanguage":"de-DE","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.walliczek.de\/index.php\/2021\/03\/31\/quarantaene-ordner-fuer-rspamd\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/blog.walliczek.de\/#\/schema\/person\/15d35a7cd20cd4a127d30a226f50c33f","name":"mwalliczek","image":{"@type":"ImageObject","@id":"https:\/\/blog.walliczek.de\/#personlogo","inLanguage":"de-DE","url":"https:\/\/secure.gravatar.com\/avatar\/5920ffa7140bf7a615c7d7f0c3fd9b2c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5920ffa7140bf7a615c7d7f0c3fd9b2c?s=96&d=mm&r=g","caption":"mwalliczek"},"logo":{"@id":"https:\/\/blog.walliczek.de\/#personlogo"},"sameAs":["https:\/\/blog.walliczek.de"]}]}},"_links":{"self":[{"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":2,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.walliczek.de\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}