{"id":296,"date":"2010-08-01T21:32:54","date_gmt":"2010-08-01T20:32:54","guid":{"rendered":"http:\/\/www.nooblet.org\/blog\/?p=296"},"modified":"2013-01-10T02:41:16","modified_gmt":"2013-01-10T02:41:16","slug":"integrating-dspam-with-spamassassin","status":"publish","type":"post","link":"https:\/\/www.nooblet.org\/blog\/2010\/integrating-dspam-with-spamassassin\/","title":{"rendered":"Integrating DSPAM with Spamassassin"},"content":{"rendered":"<p>Postfix -> DSPAM -> Amavis\/Spamassassin -> Postfix<\/p>\n<p>Spamassassin can add scores depending on the DSPAM output by reading the headers that DSPAM adds.<\/p>\n<p>These rules can be added to local.cf. They read confidence and result headers. Edit the scores to suit your setup.<\/p>\n<pre class=\"lang:default decode:true \" ># DSPAM RULES ###############\r\n# Confidence  #\r\nheader DSPAM_CONFIDENCE_8X X-DSPAM-Confidence =~ \/^0.8\/\r\ndescribe DSPAM_SPAM_8X DSPAM is moderately confident\r\nscore DSPAM_CONFIDENCE_8X 0.001\r\n \r\nheader DSPAM_CONFIDENCE_9X X-DSPAM-Confidence =~ \/^0.9[0-8]\/\r\ndescribe DSPAM_SPAM_9X DSPAM is very confident\r\nscore DSPAM_CONFIDENCE_9X 0.001\r\n \r\nheader DSPAM_CONFIDENCE_99 X-DSPAM-Confidence =~ \/^0.99\/\r\ndescribe DSPAM_SPAM_99 DSPAM is extremely confident\r\nscore DSPAM_CONFIDENCE_99 0.001\r\n \r\n# Spam #\r\nheader DSPAM_SPAM X-DSPAM-Result =~ \/^Spam$\/\r\ndescribe DSPAM_SPAM DSPAM claims it is spam\r\nscore DSPAM_SPAM 5\r\n \r\nmeta DSPAM_SPAM_8X (DSPAM_SPAM && DSPAM_CONFIDENCE_8X)\r\nscore DSPAM_SPAM_8X 1.5\r\n \r\nmeta DSPAM_SPAM_9X (DSPAM_SPAM && DSPAM_CONFIDENCE_9X)\r\nscore DSPAM_SPAM_9X 3.0\r\n \r\nmeta DSPAM_SPAM_99 (DSPAM_SPAM && DSPAM_CONFIDENCE_99)\r\nscore DSPAM_SPAM_99 5.0\r\n \r\n# Ham #\r\nheader DSPAM_HAM X-DSPAM-Result =~ \/^Innocent$\/\r\ndescribe DSPAM_HAM DSPAM claims it is ham\r\nscore DSPAM_HAM -0.1\r\n \r\nmeta DSPAM_HAM_9X (DSPAM_HAM && DSPAM_CONFIDENCE_9X)\r\nscore DSPAM_HAM_9X -1.5\r\n \r\nmeta DSPAM_HAM_99 (DSPAM_HAM && DSPAM_CONFIDENCE_99)\r\nscore DSPAM_HAM_99 -5.0\r\n \r\n# Whitelist #\r\n \r\nheader DSPAM_WHITELIST X-DSPAM-Result =~ \/^Whitelisted$\/\r\ndescribe DSPAM_WHITELIST DSPAM has whitelisted this mail\r\nscore DSPAM_WHITELIST -2.0\r\n \r\nmeta DSPAM_WHITELIST_9X (DSPAM_WHITELIST && DSPAM_CONFIDENCE_9X)\r\nscore DSPAM_WHITELIST_9X -1.5\r\n \r\nmeta DSPAM_WHITELIST_99 (DSPAM_WHITELIST && DSPAM_CONFIDENCE_99)\r\nscore DSPAM_WHITELIST_99 -5.0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Postfix -> DSPAM -> Amavis\/Spamassassin -> Postfix Spamassassin can add scores depending on the DSPAM output by reading the headers that DSPAM adds. These rules can be added to local.cf. They read confidence and result headers. Edit the scores to suit your setup. # DSPAM RULES ############### # Confidence # header DSPAM_CONFIDENCE_8X X-DSPAM-Confidence =~ \/^0.8\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":647,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,61,233,126,152],"class_list":["post-296","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-amavis","tag-dspam","tag-linux","tag-postfix","tag-spamassassin"],"_links":{"self":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":2,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":688,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/296\/revisions\/688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/media\/647"}],"wp:attachment":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}