{"id":2899,"date":"2013-12-11T13:57:00","date_gmt":"2013-12-11T19:57:00","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=2899"},"modified":"2025-07-22T02:30:22","modified_gmt":"2025-07-22T07:30:22","slug":"how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/","title":{"rendered":"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<h5 class=\"wp-block-heading\" id=\"h-status-this-os-is-no-longer-supported\">Status: This OS is no longer supported<\/h5>\n\n\n\n<p><em>This article, &#8220;How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS,&#8221; covers a version of CentOS that reached end of life (EOL). It is no longer supported. As such, this guide is no longer maintained. If you are currently operating a server running CentOS 6, we highly recommend contacting <a href=\"https:\/\/www.rosehosting.com\/support\/\">RoseHosting&#8217;s fully managed support<\/a>. They can upgrade or migrate you to a supported version of AlmaLinux.<\/em><\/p>\n\n\n\n<!--more-->\n\n\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\"><img decoding=\"async\" class=\"alignleft size-medium wp-image-1351\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin-300x132.png\" alt=\"spamassassin\" width=\"300\" height=\"132\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin-300x132.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png 334w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>The following article is <strong>part 4<\/strong> of our <a title=\"Mailserver with virtual users and domains using Postfix and Dovecot\" href=\"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">mailserver set-up with virtual users and domains using Postfix and Dovecot<\/a> on a <a title=\"CentOS VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 VPS<\/a>, followed by <strong>part 2 <\/strong>which explains\u00a0<a title=\"Permalink to Install and set-up Roundcube webmail interface\" href=\"https:\/\/www.rosehosting.com\/blog\/install-and-set-up-roundcube-webmail-interface\/\" target=\"_blank\" rel=\"bookmark noopener noreferrer\">how to install and set-up the Roundcube webmail interface<\/a> on a <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">linux vps server<\/a> and then <strong>part 3<\/strong> which is all about <a title=\"Set-up SSL encrypted connection in Postfix, Dovecot and Apache\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-ssl-encrypted-connection-in-postfix-dovecot-and-apache\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to set-up an SSL encrypted connection in Postfix, Dovecot and Apache<\/a> using <a title=\"GeoTrust SSL Certificates\" href=\"https:\/\/www.rosehosting.com\/ssl-certificates.html\" target=\"_blank\" rel=\"noopener noreferrer\">SSL certificates<\/a>.<\/p>\n<p>In this tutorial we are going to set-up <strong>SpamAssassin<\/strong> on one of our <strong>CentOS 6<\/strong> <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">linux virtual servers<\/a> and integrate it into our <a title=\"Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Postfix mailserver set-up<\/a> so it can scan and mark the emails detected as SPAM.<\/p>\n<p>What is SpamAssassin?<\/p>\n<p>It is a program released under the Apache License 2.0 used for e-mail spam filtering based on content-matching rules.<\/p>\n<h3><strong>UPDATE THE SYSTEM<\/strong><\/h3>\n<p>As usual, make sure your <strong>CentOS 6<\/strong> <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\">linux vps<\/a> is fully up to date by executing:<\/p>\n<pre>## screen -U -S spamc-screen\n## yum update<\/pre>\n<h3><strong>INSTALL SPAMASSASSIN<\/strong><\/h3>\n<p>Install the SpamAssassin package using <code>yum<\/code> by running:<\/p>\n<pre>## yum install spamassassin<\/pre>\n<h3><strong>SET-UP USER<\/strong><\/h3>\n<p>create <code>spamfilter<\/code> group used for the user that will run the <code>spamassassin<\/code> service<\/p>\n<pre>## groupadd spamfilter<\/pre>\n<p>create new user <code>spamfilter<\/code> with a home directory of <code>\/usr\/local\/spamassassin<\/code> and add it to the <code>spamfilter<\/code> group you just created<\/p>\n<pre>## useradd -g spamfilter -s \/bin\/false -d \/usr\/local\/spamassassin spamfilter\n## chown spamfilter: \/usr\/local\/spamassassin<\/pre>\n<h3><strong>CONFIGURE SPAMASSASSIN<\/strong><\/h3>\n<p>next, configure <code>spamassassin<\/code> by editing <code>\/etc\/mail\/spamassassin\/local.cf<\/code> and adding\/setting the following<\/p>\n<pre>## vim \/etc\/mail\/spamassassin\/local.cf\n\n## Required_hits: This determines the filter balance; the lower the score the more aggressive the filter.\n# A setting of 5.0 is generally effective for a small organisation or a single user.\n# Adjust the strictness score to your organization's needs - a large medical organisation might want  to let email items\n# through that are trying to sell pharmaceuticals, so we might increase the level to a more modest 8.0.\nrequired_hits 5\n## Report_safe:  This line determines whether to delete the item or to move the item to the inbox whilst appending\n# a spam notice to the subject line. The levels for this line are set to either a 1 or 0. A score of 1 will delete the spam item,\n# whereas a score of 0 will send the item to the inbox and rewrite the subject line.\nreport_safe 0\nrewrite_header Subject [**SPAM**]\n## Required_score: This line sets the spam score for all email allowed through to your domain, with levels of certainty set from 0 to 5.\n# Zero would be classified as a legitimate email item, whereas 5 would be an definite 'SPAM' item.  If we set the score to 3 we would catch a\n# lot of unsolicited emails but quite a few false positives would still get through. For our example email server we will use the score of 5,\n# but you can of course set this value according to your preference.\nrequired_score 5.0<\/pre>\n<p>before we proceed with starting-up the <code>spamassassin<\/code> service, we need to make sure it runs with our newly created <code>spamfilter<\/code> user by editing <code>\/etc\/sysconfig\/spamassassin<\/code> and setting-up the following:<\/p>\n<pre>## vim \/etc\/sysconfig\/spamassassin\n\n# Options to spamd\nSAHOME=\"\/usr\/local\/spamassassin\"\nSPID_DIR=\"\/var\/run\/spamassassin\"\nSUSER=\"spamfilter\"\nSPAMDOPTIONS=\"-d -c -m5 --username ${SUSER} -H ${SAHOME} -s ${SAHOME}\/spamfilter.log\"<\/pre>\n<p>with all that in place, we are ready to start and enable the <code>spamassassin<\/code> service on system startup using:<\/p>\n<pre>## service spamassassin start\n## chkconfig spamassassin on<\/pre>\n<h3><strong>CONFIGURE POSTFIX<\/strong><\/h3>\n<p>next thing you need to do is to actually integrate <code>spamassassin<\/code> into <code>postfix<\/code> so it can scan and mark the emails that were detected as SPAM. To achieve this we need to edit postfix configuration file. Edit <code>master.cf<\/code>:<\/p>\n<pre>## vim \/etc\/postfix\/master.cf<\/pre>\n<p>and add\/edit the following lines:<\/p>\n<pre>smtp      inet  n       -       n       -       -       smtpd -o content_filter=spamassassin\nspamassassin unix -     n       n       -       -       pipe user=spamfilter argv=\/usr\/bin\/spamc -f -e  \/usr\/sbin\/sendmail -oi -f ${sender} ${recipient}<\/pre>\n<p>then, restart postfix for the changes to take effect<\/p>\n<pre>## service postfix restart<\/pre>\n<hr \/>\n<h3><strong>TEST THE SET-UP<\/strong><\/h3>\n<p>To test if SpamAssassin actually works, you can simply send an email with subject <code> XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X <\/code> to some of your email accounts and once the email is received, check it&#8217;s headers and you should notice something like this:<\/p>\n<pre>X-Spam-Flag: YES\nX-Spam-Level: **************************************************\nX-Spam-Status: Yes, score=1000.0 required=5.0 tests=GTUBE,RCVD_IN_DNSWL_NONE,\n    TVD_SPACE_RATIO autolearn=no version=3.3.1\n....<\/pre>\n<p>This means that SpamAssassin is doing it&#8217;s job.<\/p>\n<hr \/>\n<p>Implementing <strong>SpamAssassin<\/strong> to the <a title=\"Mailserver with virtual users and domains using Postfix and Dovecot\" href=\"https:\/\/www.rosehosting.com\/blog\/mailserver-with-virtual-users-and-domains-using-postfix-and-dovecot-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">mailserver set-up with virtual users and domains using Postfix and Dovecot<\/a> adds another nice feature to the mail server set-up.<\/p>\n<p>However, there are still other parts missing like digital signatures using opendkim, dovecot sieve filter rules, virus scanning etc for a full-featured mail server. In the next few related articles, we will be adding additional features to the set-up so stay tuned.<\/p>\n<p>Update: <a title=\"How to install and integrate OpenDKIM with Postfix on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-opendkim-with-postfix-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 5 &#8211; How to install and integrate OpenDKIM with Postfix on a CentOS 6 VPS<\/a><\/p>\n<p>Update: <a title=\"How to set-up server-side email filtering with Dovecot Sieve and Roundcube on a CentOS 6 VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Part 6 &#8211; How to set-up server-side email filtering with Dovecot Sieve and Roundcube on a CentOS 6 VPS<\/a><\/p>\n<hr \/>\n<p>Of course, if you are one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> customers, you don\u2019t have to do any of this, simply ask our admins, sit back and relax. Our admins will set this up for you immediately.<\/p>\n<p><strong>PS.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>","protected":false},"excerpt":{"rendered":"<p>Status: This OS is no longer supported This article, &#8220;How to install and integrate SpamAssassin with Postfix on a CentOS &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#more-2899\" aria-label=\"Read more about How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":1351,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1706,1703,13],"tags":[34,124,71,334,220,1152,196],"class_list":["post-2899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-email-servers","category-security","category-tutorials","tag-centos","tag-centos-vps","tag-dovecot","tag-mailserver","tag-postfix","tag-rosehosting","tag-spamassassin","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install and Integrate SpamAssassin with Postfix | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install and integrate SpamAssassin with Postfix on a CentOS 6 server with this comprehensive guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\" \/>\n<meta property=\"og:description\" content=\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2013-12-11T19:57:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T07:30:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\" \/>\n\t<meta property=\"og:image:width\" content=\"334\" \/>\n\t<meta property=\"og:image:height\" content=\"148\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\",\"datePublished\":\"2013-12-11T19:57:00+00:00\",\"dateModified\":\"2025-07-22T07:30:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\"},\"wordCount\":585,\"commentCount\":25,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\",\"keywords\":[\"centos\",\"centos vps\",\"Dovecot\",\"mailserver\",\"postfix\",\"rosehosting\",\"spamassassin\"],\"articleSection\":[\"CentOS\",\"Email Servers\",\"Security\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\",\"name\":\"Install and Integrate SpamAssassin with Postfix | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\",\"datePublished\":\"2013-12-11T19:57:00+00:00\",\"dateModified\":\"2025-07-22T07:30:22+00:00\",\"description\":\"Learn how to install and integrate SpamAssassin with Postfix on a CentOS 6 server with this comprehensive guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png\",\"width\":\"334\",\"height\":\"148\",\"caption\":\"spamassassin\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install and Integrate SpamAssassin with Postfix | RoseHosting","description":"Learn how to install and integrate SpamAssassin with Postfix on a CentOS 6 server with this comprehensive guide.","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:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS","og_description":"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2013-12-11T19:57:00+00:00","article_modified_time":"2025-07-22T07:30:22+00:00","og_image":[{"width":334,"height":148,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS","datePublished":"2013-12-11T19:57:00+00:00","dateModified":"2025-07-22T07:30:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/"},"wordCount":585,"commentCount":25,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png","keywords":["centos","centos vps","Dovecot","mailserver","postfix","rosehosting","spamassassin"],"articleSection":["CentOS","Email Servers","Security","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/","name":"Install and Integrate SpamAssassin with Postfix | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png","datePublished":"2013-12-11T19:57:00+00:00","dateModified":"2025-07-22T07:30:22+00:00","description":"Learn how to install and integrate SpamAssassin with Postfix on a CentOS 6 server with this comprehensive guide.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/11\/spamassassin.png","width":"334","height":"148","caption":"spamassassin"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-integrate-spamassassin-with-postfix-on-a-centos-6-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install and integrate SpamAssassin with Postfix on a CentOS 6 VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=2899"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2899\/revisions"}],"predecessor-version":[{"id":50848,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/2899\/revisions\/50848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/1351"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=2899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=2899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=2899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}