{"id":179,"date":"2009-10-27T13:58:19","date_gmt":"2009-10-27T05:58:19","guid":{"rendered":"http:\/\/umarzuki.org\/?p=179"},"modified":"2009-10-27T13:58:19","modified_gmt":"2009-10-27T05:58:19","slug":"pasang-spamassassin-pada-debian-5","status":"publish","type":"post","link":"https:\/\/umarzuki.org\/blog\/2009\/10\/27\/pasang-spamassassin-pada-debian-5\/","title":{"rendered":"Pasang Spamassassin pada Debian 5"},"content":{"rendered":"<p>Sangat mudah, cuma 2 pakej diperlukan; spamassassin dam spamc<br \/>\nSebagai root:<br \/>\n<code>aptitude install spamassassin spamc<\/code><br \/>\n<!--more--><br \/>\nPada pengguna\/akaun e-mel yang ingin dilindungi, buat satu fail .procmailrc pada direktori utama pengguna tersebut dengan kandungan seperti berikut:<\/p>\n<blockquote><p>#########################################################################<br \/>\n# procmail.sample2<br \/>\n#########################################################################<\/p>\n<p># sample procmail file for spam filtering (enhanced version)<br \/>\n#<br \/>\n# Last modified: Thu 08 Jan 2004 01:42:11 PM CST<br \/>\n#<br \/>\n# CHANGES:<br \/>\n#<br \/>\n# 1\/8\/04: Added recipe to save &#8220;near misses&#8221; to a &#8220;probablespam&#8221;<br \/>\n# folder. Added lock file &#8220;spamassassin.lock&#8221; to recipe, as recommended<br \/>\n# in the spamassassin documentation.<br \/>\n#<br \/>\n# 1\/7\/04: Replaced the standalone version of spamassassin by the client<br \/>\n# version, spamc, to reduce the impact on system resources.<br \/>\n# Deleted the recipe for filtering the klez virus, as the virus seems<br \/>\n# to have runs its course and is no longer a problem.<br \/>\n#<br \/>\n#<br \/>\n# INSTRUCTIONS: Copy this file to .procmailrc in your home directory.<br \/>\n# See www.math.uiuc.edu\/~hildebr\/spamfiltering.html for more information.<br \/>\n#<br \/>\n# NOTE: This file is intended for users of the UIUC Mathematics<br \/>\n# Department&#8217;s Unix Network and has only been tested on that system.<br \/>\n# It will probably work with little or no modification on most standard<br \/>\n# Unix installations with SpamAssassin installed and running spamd,<br \/>\n# the daemonized version of spamassassin.  Feel free to use or adapt<br \/>\n# it, but absolutely no warranties.<br \/>\n#<br \/>\n#<br \/>\n# ABOUT SPAMASSASSIN: Information about the SpamAssassin program<br \/>\n# that does the spam filtering can be found at  www.spamassassin.org.<\/p>\n<p>#########################################################################<br \/>\n# set mail directory<br \/>\n#########################################################################<\/p>\n<p>MAILDIR = $HOME\/mail<\/p>\n<p># This sets the directory in which the spam folder gets placed.<br \/>\n# The above setting is the one used by the pine mail reader for its<br \/>\n# folders. If you use pine, there is no need to change this setting.<br \/>\n#<br \/>\n# If you use a different mail reader (e.g., elm, mutt, netscape, dtmail,<br \/>\n# mail\/mailx), you may want to replace this directory by the one where<br \/>\n# your mail reader normally puts its folders. (For example, netscape<br \/>\n# mail uses the directory &#8220;nsmail&#8221; (underneath $HOME), mutt uses<br \/>\n# &#8220;Mail&#8221;; for mail\/mailx\/dtmail check the &#8220;folder&#8221; setting in the<br \/>\n# .mailrc file.)<br \/>\n#<br \/>\n# [This is merely a matter of convenience to facilitate locating the<br \/>\n# spam folder. You can certainly leave the setting as above, or<br \/>\n# replace it by any directory of your choice.  With most mail readers, you<br \/>\n# can access the spam folder directly using the &#8220;-f&#8221; option with<br \/>\n# the full path to the spam folder, e.g., &#8220;mail -f $HOME\/mail\/spam&#8221;<br \/>\n# or &#8220;pine -f $HOME\/mail\/spam&#8221;]<br \/>\n#<\/p>\n<p>#########################################################################<br \/>\n# spam filter<br \/>\n#########################################################################<\/p>\n<p>#########################################################################<br \/>\n# First pipe email through spamc (the &#8220;client version&#8221; of spamassassin)<br \/>\n# for markup<br \/>\n#########################################################################<\/p>\n<p># The condition &#8221; < 256000\" limits spam filtering to messages that\n# are < 250k  in size, as recommended in the spamassassin docs (for\n# performance reasons). Virtually all spam is well below that limit,\n# so having this condition there does not make a difference, as far\n# as spam filtering is concerned.\n\n\n:0fw: spamassassin.lock\n* < 256000\n| \/usr\/bin\/spamc\n\n\n#########################################################################\n# Then route all email tagged as spam to a spam folder inside the\n# mail directory defined above\n#########################################################################\n\n:0:\n* ^X-Spam-Status: Yes\n$MAILDIR\/Spam\n\n\n#########################################################################\n# Next, save \"near misses\" to a special folder \"probablespam\".\n#########################################################################\n\n# Having a sufficiently large supply of such misses is useful for later\n# analysis and for training of SpamAssassin using the sa-learn program.\n#\n# The \"c\" flag in the first line of the recipe ensures that only copies\n# of the messages get rerouted in this way; the messages themselves\n# will pass through and show up in the message index of your mail\n# reader just like any other messages not flagged as spam. For that\n# reason there is no need to check the \"probablespam\" folder for false\n# positives. One can simply leave it alone and forget about it until\n# sufficiently many (say, a few hundred) messages have accumulated\n# there to be useful for the training of SpamAssassin with sa-learn.\n#\n# This recipe is optional.  There is no harm in leaving it in and, as\n# mentioned, it may help improving the accuracy of SpamAssassin down\n# the road, but if you don't want it, simply delete it or comment it\n# out by putting a hash mark at the beginning of each line.\n\n\n:0c:\n* ^X-Spam-Level: \\*\\*\\*\n$MAILDIR\/probablespam\n\n#########################################################################\n# Finally, remove header inserted by spamassassin\n#########################################################################\n\n# This step is purely cosmetic. It removes the extra headers inserted\n# by spamassassin listing the \"spam score\" of the message and the\n# tests that the message passed or failed.  Many legitimate messages\n# fail some of the tests that spamassassin performs, but the resulting\n# scores are usually well below the spam threshold, so the messages\n# will not be identified as spam. With most mail readers, those headers\n# won't be displayed anyway unless you specifically ask the mail\n# reader to display the full headers. However, if you save a message\n# and then print it out, the headers, including those inserted by spam\n# assassin, will get printed.\n#\n#\n:0fhw\n| formail -I \"X-Spam-\"\n#\n\n#########################################################################\n# end of spam filter\n#########################################################################<\/p><\/blockquote>\n<p>Sekarang cuba hantar mel spam ke pengguna berkenaan. E-mel tersebut akan terus dimasukkan ke dalam folder ~\/Spam<\/p>\n<p>Sumber rujukan:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"sWAHa8YLwk\"><p><a href=\"https:\/\/soumyarprabhu.wordpress.com\/2008\/07\/20\/installing-spamassassin-in-webmin\/\">Installing spamassassin in&nbsp;webmin<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cInstalling spamassassin in\u00a0webmin\u201d \u2014 soumya.co.nr\" src=\"https:\/\/soumyarprabhu.wordpress.com\/2008\/07\/20\/installing-spamassassin-in-webmin\/embed\/#?secret=R0eakASdrc#?secret=sWAHa8YLwk\" data-secret=\"sWAHa8YLwk\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\nhttp:\/\/spamassassin.apache.org\/gtube\/<\/p>\n<p><!--more--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sangat mudah, cuma 2 pakej diperlukan; spamassassin dam spamc Sebagai root: aptitude install spamassassin spamc<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}