{"id":327,"date":"2009-05-17T20:53:44","date_gmt":"2009-05-18T01:53:44","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=327"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"upgrading-spamassassin-on-fedora-4-server","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=327","title":{"rendered":"Upgrading SpamAssassin on Fedora 4 server."},"content":{"rendered":"<p>Download the lastet version of SpamAssassin version 3.2.5, the file name is Mail-SpamAssassin-3.2.5.tar.gz.  You can get the latest version from spamassassin.apache.org.<\/p>\n<p>In this step by step example I am upgrading SpamAssassin version 3.0.3-4.fc4 to 3.2.5 on my Fedora 4 server.<\/p>\n<div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 200;\ngoogle_ad_height = 200;\ngoogle_ad_format = \"200x200_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>After you download the lastest version, build the rpm using this file, the command to do that is below.<\/p>\n<p><strong>sudo rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz<\/strong><\/p>\n<p>This will create two files, perl-Mail-SpamAssassin-3.2.5-1.i386.rpm and  spamassassin-3.2.5-1.i386.rpm in the folder  \/usr\/src\/redhat\/RPMS\/i386.<\/p>\n<p>Install this file first with the following command,<\/p>\n<p><strong>rpm -i perl-Mail-SpamAssassin-3.2.5-1.i386.rpm<\/strong><\/p>\n<p>Uninstall Evolution first because it dependencies that relies on Spamassassin 3.0.3-4.fc4, otherwise you will receive an error when uninstalling SpamAssassin version 3.0.3.  Evolution is an email client for Linux, similar to Outlook for Windows.<\/p>\n<p>Uninstall in the following order:<br \/>\n<strong>rpm -e evolution-connector-2.2.2-5.i386<br \/>\nrpm -e evolution-devel-2.2.2-5.i386<br \/>\nrpm -e evolution-2.2.2-5.i386<\/strong><\/p>\n<p>Check to see whcih version of Spam Assassin is installed.<\/p>\n<p><strong>rpm -q spamassassin<\/strong><br \/>\nspamassassin-3.0.3-4.fc4<\/p>\n<p>To uninstall run this command.<\/p>\n<p><strong>rpm -e spamassassin-3.0.3-4.fc4<\/strong><\/p>\n<p>You will see this warning message.<br \/>\n<em>warning: \/etc\/mail\/spamassassin\/spamassassin-default.rc saved as \/etc\/mail\/spamassassin\/spamassassin-default.rc.rpmsave<br \/>\n<\/em><\/p>\n<p>Confirm that SpamAssassin has been uninstalled.<br \/>\n<strong>rpm -q spamassassin<\/strong><br \/>\n<em>package spamassassin is not installed<\/em><\/p>\n<p>Now install the new version of SpamAssassin.<\/p>\n<p><strong>rpm -i spamassassin-3.2.5-1.i386.rpm<\/strong><\/p>\n<p>Check to see if the installation was successful.<br \/>\n<strong>rpm -q spamassassin<\/strong><br \/>\n<em>spamassassin-3.2.5-1<\/em><\/p>\n<p>Now copy this file that was renamed during the uninstallation of the previous version.<br \/>\n<strong>cp -i spamassassin-default.rc.rpmsave spamassassin-default.rc<\/strong><\/p>\n<p>If you are interested here is the contents of the file spamassassin-default.rc.<br \/>\n# send mail through spamassassin<br \/>\n:0fw<br \/>\n| \/usr\/bin\/spamassassin<br \/>\n# Drop all spam emails to \/dev\/null<br \/>\n:0:<br \/>\n* ^X-Spam-Status: Yes<br \/>\n\/dev\/null<br \/>\n# send mail through spamassassin<br \/>\n:0fw<br \/>\n| \/usr\/bin\/spamassassin<br \/>\n# Drop all spam emails to \/dev\/null<br \/>\n:0:<br \/>\n* ^X-Spam-Status: Yes<br \/>\n\/dev\/null<\/p>\n<p>The final step is to start the SpamAssassin service.<\/p>\n<p><strong>service spamassassin start<\/strong><br \/>\n<em>Starting spamd:                                            [  OK  ]<\/em><\/p>\n<p>If you wish you can now download and install the latest version of Evolution from projects.gnome.org\/evolution.  I may do that sometime, as I do not use it. <\/p>\n<p>Well after I completed the above steps, it seems that SpamAssassin was not working.  I then decided to read the documentation avaiable on the website.  I guess I should have doen that first.<\/p>\n<p>Anyhow, these are the steps I missed.  Edit the file \/etc\/mail\/spamassassin\/local.cf. <\/p>\n<p>Remove the comment (#) from these lines as shown below<br \/>\n<strong><br \/>\n#   Add *****SPAM***** to the Subject header of spam e-mails<br \/>\n#<br \/>\nrewrite_header Subject *****SPAM*****<\/p>\n<p>#   Set the threshold at which a message is considered spam (default: 5.0)<br \/>\n#<br \/>\nrequired_score 8<\/p>\n<p>#   Use Bayesian classifier (default: 1)<br \/>\n#<br \/>\nuse_bayes 1<\/p>\n<p>#   Bayesian classifier auto-learning (default: 1)<br \/>\n#<br \/>\nbayes_auto_learn 1<br \/>\n<\/strong><\/p>\n<p>Then edit the file \/etc\/mail\/spamassassin\/spamassassin-default.rc, and add these lines if it\u2019s not there.<\/p>\n<p><strong># send mail through spamassassin<br \/>\nDROPPRIVS=yes<\/p>\n<p>:0fw<br \/>\n| \/usr\/bin\/spamassassin<\/strong><\/p>\n<p>Restart spamd.<br \/>\nservice spamassassin restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the lastet version of SpamAssassin version 3.2.5, the file name is Mail-SpamAssassin-3.2.5.tar.gz. You can get the latest version from spamassassin.apache.org. In this step by step example I am upgrading SpamAssassin version 3.0.3-4.fc4 to 3.2.5 on my Fedora 4 server.&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=327\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[49,55,38,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/327"}],"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=327"}],"version-history":[{"count":25,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":1004,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/1004"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}