{"id":58,"date":"2007-11-01T11:31:05","date_gmt":"2007-11-01T16:31:05","guid":{"rendered":"http:\/\/www.gamescheat.ca\/2007\/11\/01\/configuring-spamassassin-in-fedora-core-4\/"},"modified":"2019-09-04T19:57:41","modified_gmt":"2019-09-05T00:57:41","slug":"configuring-spamassassin-in-fedora-core-4","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=58","title":{"rendered":"Configuring Spamassassin in Fedora Core 4"},"content":{"rendered":"<p>Spamassasin is a great antispam software that is available under the GNU license.   It is free to dwonload and use.   After much tinkering, downloading, and reading ton\u2019s of articles on the internet, I almost gave up trying to get it working.<\/p>\n<p>I have a Fedora Core 4 server with sendmail as the MTA for my email.  I use Squirrelmail as the web client to access my emails.   For the past many months I have started receiving an incredible amount of spam emails.   It seems that I get approximately anywhere between 50-100 spams.   Well since I am home on vacation this week, not really as I am house watching while my washroom is being reno.   I have taken this opportunity to get spamassassin working on my server.<\/p>\n<p>Firstly check to see if Spamassassin was installed and activated. I entered the command<\/p>\n<p><strong># rpm -q spamassassin<br \/>\nspamassassin-3.0.3-4.fc4<\/strong><\/p>\n<p>Yes, I had version 3.0.3-4.fc4 installed.<\/p>\n<p>To start spamassasin simply enter the below command<\/p>\n<p><strong># service spamassassin start<\/strong><\/p>\n<p>Next, use yum to upgrade the version if it is available.   In my case it found none.<br \/>\n<strong># yum update spamassassin<\/strong><\/p>\n<p>Lastly activate antispam for an individual by following the below instruction.<\/p>\n<div style=\"float: left;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 300;\ngoogle_ad_height = 250;\ngoogle_ad_format = \"300x250_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>To enable spamassassin, if you are receiving mail locally, simply add<br \/>\nthis line to your \/.procmailrc (eg. \/home\/andrew\/.procmailrc):<br \/>\n<strong>INCLUDERC=\/etc\/mail\/spamassassin\/spamassassin-default.rc<\/strong><\/p>\n<p>To activate anti spam for all users:<\/p>\n<p>Add the above line to   \/etc\/procmailrc<\/p>\n<p>Viola, now all the junk emails are marked with a subject line of [****SPAM****].   This makes it so much easier for me to scan quickly and delete.<\/p>\n<p>I must say that it was very easy to install and active Spamassassin on Fedora Core 4.   But it took me over a   day to figure this out.   I tried all sorts of help available on the internet but could not get it working.   I gave up and tried installing Dspam another open source software which is also very good.   But after I downloaded Dspam and then tried to complie it for my version of linux, I had trememdous challanges.   I gave up on that and went back to trying to figure out how to get Spamassassin working.   I am glad I did that as I now have it working.   There si not much help you can find on the Frdora Project forum.<\/p>\n<p>Well here is how I stumbled on the answer, just a simple solution.   I was using the yum command to search   for the spamassassin packag and the answer was right in front of my face.   The result of the yum serach command displays the instruction to active spam filter.   Below is the result.<\/p>\n<p><strong># yum search spamassasin<br \/>\n<\/strong>Searching Packages:<br \/>\nSetting up repositories<br \/>\nReading repository metadata in from local files<br \/>\nNo Matches found<br \/>\n[root@morpheus dspam-3.8.0]# yum search spamassassin<br \/>\nSearching Packages:<br \/>\nSetting up repositories<br \/>\nReading repository metadata in from local files<\/p>\n<p>pyzor.noarch                                                         0.4.0-9.fc4                       extras<br \/>\nMatched from:<br \/>\nPyzor is a collaborative, networked system to detect<br \/>\nand block spam using identifying digests of messages.<br \/>\nPyzor is similar to Vipul\u2019s Razor except implemented<br \/>\nin python, and using fully open source servers.<\/p>\n<p>Pyzor can be used either standalone, or to augment the<br \/>\nspam filtering ability of spamassassin.   spamassassin<br \/>\nis highly recommended.<\/p>\n<p>exim-sa.i386                                                         4.62-1.fc4                         extras<br \/>\nMatched from:<br \/>\nExim SpamAssassin at SMTP time \u2013 d\/l plugin<\/p>\n<p>spamass-milter.i386                                           0.3.1-3.fc4                       extras<br \/>\nMatched from:<br \/>\nSendmail milter for spamassassin<br \/>\nA Sendmail milter (Mail Filter) library that pipes all incoming mail<br \/>\n(including things received by rmail\/UUCP) through the SpamAssassin,<br \/>\na highly customizable spam filter.<\/p>\n<p>sylpheed-claws-plugins-spamassassin.i386 2.6.0-1.fc4                       extras<br \/>\nMatched from:<br \/>\nsylpheed-claws-plugins-spamassassin<br \/>\nSpamassassin plugin for sylpheed-claws<br \/>\nSpamassassin plugin for sylpheed-claws<\/p>\n<p>amavisd-new.noarch                                             2.4.2-2.fc4                       extras<br \/>\nMatched from:<br \/>\nEmail filter with virus scanner and spamassassin support<br \/>\namavisd-new is a high-performance and reliable interface between mailer<br \/>\n(MTA) and one or more content checkers: virus scanners, and\/or<br \/>\nMail::SpamAssassin Perl module. It is written in Perl, assuring high<br \/>\nreliability, portability and maintainability. It talks to MTA via (E)SMTP<br \/>\nor LMTP, or by using helper programs. No timing gaps exist in the design,<br \/>\nwhich could cause a mail loss.<\/p>\n<p>spamassassin.i386                                               3.0.3-4.fc4                       base<br \/>\nMatched from:<br \/>\nspamassassin<br \/>\nSpamAssassin provides you with a way to reduce if not completely eliminate<br \/>\nUnsolicited Commercial Email (SPAM) from your incoming email.   It can<br \/>\nbe invoked by a MDA such as sendmail or postfix, or can be called from<br \/>\na procmail script, .forward file, etc.   It uses a genetic-algorithm<br \/>\nevolved scoring system to identify messages which look spammy, then<br \/>\nadds headers to the message so they can be filtered by the user\u2019s mail<br \/>\nreading software.   This distribution includes the spamd\/spamc components<br \/>\nwhich create a server that considerably speeds processing of mail.<\/p>\n<p>To enable spamassassin, if you are receiving mail locally, simply add<br \/>\nthis line to your ~\/.procmailrc:<br \/>\nINCLUDERC=\/etc\/mail\/spamassassin\/spamassassin-default.rc<\/p>\n<p>To filter spam for all users, add that line to \/etc\/procmailrc<br \/>\n(creating if necessary).<br \/>\nhttp:\/\/spamassassin.apache.org\/<\/p>\n<p>spamassassin.i386                                               3.0.6-1.fc4                       updates-releasedMatched from:<br \/>\nspamassassin<br \/>\nSpamAssassin provides you with a way to reduce if not completely eliminate<br \/>\nUnsolicited Commercial Email (SPAM) from your incoming email.   It can<br \/>\nbe invoked by a MDA such as sendmail or postfix, or can be called from<br \/>\na procmail script, .forward file, etc.   It uses a genetic-algorithm<br \/>\nevolved scoring system to identify messages which look spammy, then<br \/>\nadds headers to the message so they can be filtered by the user\u2019s mail<br \/>\nreading software.   This distribution includes the spamd\/spamc components<br \/>\nwhich create a server that considerably speeds processing of mail.<\/p>\n<p>To enable spamassassin, if you are receiving mail locally, simply add<br \/>\nthis line to your ~\/.procmailrc:<br \/>\nINCLUDERC=\/etc\/mail\/spamassassin\/spamassassin-default.rc<\/p>\n<p>To filter spam for all users, add that line to \/etc\/procmailrc<br \/>\n(creating if necessary).<br \/>\nhttp:\/\/spamassassin.apache.org\/<\/p>\n<p>spamassassin.i386                                               3.0.3-4.fc4                       installed<br \/>\nMatched from:<br \/>\nspamassassin<br \/>\nSpamAssassin provides you with a way to reduce if not completely eliminate<br \/>\nUnsolicited Commercial Email (SPAM) from your incoming email.   It can<br \/>\nbe invoked by a MDA such as sendmail or postfix, or can be called from<br \/>\na procmail script, .forward file, etc.   It uses a genetic-algorithm<br \/>\nevolved scoring system to identify messages which look spammy, then<br \/>\nadds headers to the message so they can be filtered by the user\u2019s mail<br \/>\nreading software.   This distribution includes the spamd\/spamc components<br \/>\nwhich create a server that considerably speeds processing of mail.<\/p>\n<p><strong>To enable spamassassin, if you are receiving mail locally, simply add<br \/>\nthis line to your ~\/.procmailrc:<br \/>\nINCLUDERC=\/etc\/mail\/spamassassin\/spamassassin-default.rc<\/strong><\/p>\n<p><strong>To filter spam for all users, add that line to \/etc\/procmailrc<br \/>\n(creating if necessary).<br \/>\n<\/strong><\/p>\n<p>I am going to monitor the accuracy of the anti spam, if it is accurate then I will simply configure spamassassin to drop all spams instead of delivering it to my users mailboxes.<\/p>\n<p>19 Nov, 2007: Well it\u2019s been some weeks and Spamassassin is doing a great job.   Over 90% of spam are identified correctly.   I simply configured it to drop all spam instead of just tagging the subject line.   This should save me a lot of time manually deleting all junk mail.   This is how i did it,   I edited the \/etc\/mail\/spamassassin\/spamassasin-default.rc and added the below lines:<\/p>\n<p>#  Drop all spam emails to \/dev\/null<br \/>\n:0:<br \/>\n* ^X-Spam-Status: Yes<br \/>\n\/dev\/null<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spamassasin is a great antispam software that is available under the GNU license. It is free to dwonload and use. After much tinkering, downloading, and reading ton\u2019s of articles on the internet, I almost gave up trying to get it&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=58\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/58"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":3,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":1012,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/1012"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}