{"id":3025,"date":"2014-01-10T12:48:42","date_gmt":"2014-01-10T18:48:42","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=3025"},"modified":"2025-07-22T03:39:52","modified_gmt":"2025-07-22T08:39:52","slug":"how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/","title":{"rendered":"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6"},"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 set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6,&#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\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png\"><img decoding=\"async\" class=\"alignleft size-medium wp-image-2699\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface-300x225.png\" alt=\"Install and set-up Roundcube webmail interface\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface-300x225.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png 400w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>The following article is <strong>part 6<\/strong> of 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> series. It covers the steps used to <strong>set-up server-side email filtering with Dovecot Sieve and Roundcube<\/strong> on a <a title=\"CentOS Linux VPS\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 VPS<\/a><\/p>\n<p>At the end of this article you will end up having the ability to set-up your own <strong>server-side mail filter rules<\/strong> and automatically <strong>deliver emails to specific maildir<\/strong> based on a filter rule.<\/p>\n<p>What is all this about?<\/p>\n<p>The project behind this is known as <strong>Pigeonhole<\/strong>. It&#8217;s great because it adds support for the\u00a0<a href=\"http:\/\/www.sieve.info\/\" target=\"_blank\" rel=\"noopener noreferrer\">Sieve language<\/a>\u00a0(<a href=\"https:\/\/web.archive.org\/web\/20210506081049\/https:\/\/tools.ietf.org\/html\/rfc5228\" target=\"_blank\" rel=\"noopener noreferrer\">RFC 5228<\/a>) and the\u00a0ManageSieve protocol\u00a0(RFC 5804) to the\u00a0<a href=\"http:\/\/www.dovecot.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Dovecot Secure IMAP Server<\/a>. Additionally, one can easily manage these filter rules via <a title=\"Install and set-up Roundcube webmail interface\" href=\"https:\/\/www.rosehosting.com\/blog\/install-and-set-up-roundcube-webmail-interface\/\" target=\"_blank\" rel=\"noopener noreferrer\">Roundcube&#8217;s web interface.<\/a><\/p>\n<h3><strong>UPDATE THE SYSTEM<\/strong><\/h3>\n<p>Before proceeding any further, make sure you are in a screen session and check if your <strong>CentOS<\/strong> <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> is fully up-to-date by running:<\/p>\n<pre>## screen -U -S sieve-screen\n## yum update<\/pre>\n<hr \/>\n<h3><strong>ENABLE DOVECOT MANAGE-SIEVE<\/strong><\/h3>\n<p>In order to enable <strong>ManageSieve<\/strong> protocol in <strong>Dovecot<\/strong> we need to install the <code>dovecot-pigeonhole<\/code> package using &#8216;yum&#8217;<\/p>\n<pre>## yum install dovecot-pigeonhole<\/pre>\n<p>Once the package is installed, navigate to dovecot&#8217;s configuration directory in <code>\/etc\/dovecot<\/code> and edit the main configuration file <code>dovecot.conf<\/code><\/p>\n<pre>## cd \/etc\/dovecot\n## vim dovecot.conf<\/pre>\n<p>set <code>protocols<\/code> to<\/p>\n<pre>protocols = imap lmtp sieve<\/pre>\n<p>add <code>auth-master<\/code> unix-listener to service <code>auth<\/code><\/p>\n<pre>service auth {\n    unix_listener auth-client {\n        group = postfix\n        mode = 0660\n        user = postfix\n    }\n\n    unix_listener auth-master {\n        group = vmail\n        mode = 0660\n        user = vmail\n    }\n\n    user = root\n}<\/pre>\n<p>and add the following to the end of the configuration file:<\/p>\n<pre>service managesieve-login {\n  inet_listener sieve {\n    port = 4190\n  }\n}\nservice managesieve {\n}\nprotocol sieve {\n    managesieve_max_line_length = 65536\n    managesieve_implementation_string = dovecot\n    log_path = \/var\/log\/dovecot-sieve-errors.log\n    info_log_path = \/var\/log\/dovecot-sieve.log\n}\nplugin {\n    sieve = ~\/dovecot.sieve\n    sieve_global_path = \/etc\/dovecot\/sieve\/default.sieve\n    sieve_dir = ~\/sieve\n    sieve_global_dir = \/etc\/dovecot\/sieve\/global\/\n}\nlda_mailbox_autocreate = yes\nlda_mailbox_autosubscribe = yes\nprotocol lda {\n    mail_plugins = $mail_plugins autocreate sieve quota\n    postmaster_address = postmaster@mydomain.com\n    hostname = mail.mydomain.com\n    auth_socket_path = \/var\/run\/dovecot\/auth-master\n    log_path = \/var\/log\/dovecot-lda-errors.log\n    info_log_path = \/var\/log\/dovecot-lda.log\n}\nprotocol lmtp {\n    mail_plugins = $mail_plugins autocreate sieve quota\n    log_path = \/var\/log\/dovecot-lmtp-errors.log\n    info_log_path = \/var\/log\/dovecot-lmtp.log\n}<\/pre>\n<p>set-up some necessary stuff<\/p>\n<pre>## touch \/var\/log\/{dovecot-lda-errors.log,dovecot-lda.log}\n## touch \/var\/log\/{dovecot-sieve-errors.log,dovecot-sieve.log}\n## touch \/var\/log\/{dovecot-lmtp-errors.log,dovecot-lmtp.log}\n## mkdir -p \/etc\/dovecot\/sieve\/global\n\n## chown vmail: -R \/etc\/dovecot\/sieve\n## chown vmail:mail \/var\/log\/dovecot-*<\/pre>\n<p>restart <code>dovecot<\/code> for the changes to take effect<\/p>\n<pre>## service dovecot restart<\/pre>\n<p>verify <strong>manage-sieve<\/strong> is exposed on port <code>4190<\/code><\/p>\n<pre>## netstat -tunlp | grep :4190<\/pre>\n<hr \/>\n<h3><strong>SET-UP GLOBAL SPAM FILTERS<\/strong><\/h3>\n<p>Next step is to actually test the server-side filter by setting up a global SPAM sieve filter rule in <code>\/etc\/dovecot\/sieve\/default.sieve<\/code>. This rule should match all emails marked as SPAM by <strong>SpamAssassin<\/strong> and move them to the <code>Spam<\/code> maildir. So, create the following:<\/p>\n<pre>## vim \/etc\/dovecot\/sieve\/default.sieve<\/pre>\n<p>and add the sieve rules below<\/p>\n<pre>require [\"fileinto\"];\n# rule:[SPAM]\nif header :contains \"X-Spam-Flag\" \"YES\" {\n        fileinto \"Spam\";\n}\n# rule:[SPAM2]\nelsif header :matches \"Subject\" [\"*money*\",\"*Viagra*\",\"Cialis\"] {\n        fileinto \"Spam\";\n}<\/pre>\n<hr \/>\n<h3><strong>SET-UP POSTFIX DELIVERY<\/strong><\/h3>\n<p>for this to work we need to edit two <strong>Postfix<\/strong> configuration files. Start with editing <code>\/etc\/postfix\/main.cf<\/code><\/p>\n<pre>## vim \/etc\/postfix\/main.cf<\/pre>\n<p>and change\/add the following<\/p>\n<pre>virtual_transport = dovecot\ndovecot_destination_recipient_limit = 1<\/pre>\n<p>next open <code>\/etc\/postfix\/master.cf<\/code> and add the following to the end of the file<\/p>\n<pre>dovecot   unix  -       n       n       -       -       pipe\n  flags=DRhu user=vmail:vmail argv=\/usr\/libexec\/dovecot\/deliver -f ${sender} -d ${recipient}<\/pre>\n<p>restart postfix for the changes to take effect<\/p>\n<pre>## service postfix restart<\/pre>\n<p>with all that in place, send an email to some email account on the server using the subject below<\/p>\n<pre>XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X<\/pre>\n<p>the email should be flagged as SPAM by <strong>SpamAssassin<\/strong> and moved to the <code>Spam<\/code> maildir by <strong>Dovecot LDA<\/strong><\/p>\n<hr \/>\n<h3><strong>ENABLE SIEVE PLUGIN IN ROUNDCUBE<\/strong><\/h3>\n<p>to be able to manage <strong>server-side filter rules<\/strong> through <strong>Roundcube<\/strong>, we need to enable the <code>manage-sieve<\/code> plugin by editing few configuration files.<\/p>\n<p>change to Roundcube&#8217;s document root in <code>\/var\/www\/html\/roundcube\/<\/code><\/p>\n<pre>## cd \/var\/www\/html\/roundcube\/<\/pre>\n<p>edit Roundcube&#8217;s main configuration file and set the following:<\/p>\n<pre>## vim +\/PLUGINS config\/main.inc.php\n...\n$rcmail_config['plugins'] = array('managesieve');<\/pre>\n<p>next, proceed with changing to <code>\/var\/www\/html\/roundcube\/plugins\/managesieve\/<\/code><\/p>\n<pre>## cd plugins\/managesieve\/<\/pre>\n<p>copy the default configuration file and set the following:<\/p>\n<pre>## cp config.inc.php.dist config.inc.php\n## vim config.inc.php\n...\n$rcmail_config['managesieve_port'] = 4190;\n...\n$rcmail_config['managesieve_default'] = '\/etc\/dovecot\/sieve\/default.sieve';<\/pre>\n<p>now you can login to your <strong>Roundcube WebMail<\/strong>, navigate to <code>Settings &gt; Filters<\/code> and create new <strong>filter sets<\/strong> and\/or <strong>filter rules<\/strong>.<\/p>\n<hr \/>\n<p>Implementing <strong>server-side email filtering<\/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 great and useful feature. Now you can easily filter and organize your emails.<\/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><span style=\"color: #ff0000;\">PS<\/span>.<\/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 set up server-side email filtering with Dovecot Sieve and &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#more-3025\" aria-label=\"Read more about How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":2699,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1706,13],"tags":[71,371,334,1152,204,370],"class_list":["post-3025","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-email-servers","category-tutorials","tag-dovecot","tag-filter","tag-mailserver","tag-rosehosting","tag-roundcube","tag-sieve","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Dovecot Sieve and Roundcube on CentOS 6 Setup | RoseHosting<\/title>\n<meta name=\"description\" content=\"This guide explains Dovecot Sieve and Roundcube setup on CentOS 6 for those seeking email filtering solutions.\" \/>\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-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-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 set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6\" \/>\n<meta property=\"og:description\" content=\"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-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=\"2014-01-10T18:48:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T08:39:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\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=\"4 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-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6\",\"datePublished\":\"2014-01-10T18:48:42+00:00\",\"dateModified\":\"2025-07-22T08:39:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/\"},\"wordCount\":613,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/install-and-set-up-roundcube-webmail-interface.png\",\"keywords\":[\"Dovecot\",\"filter\",\"mailserver\",\"rosehosting\",\"roundcube\",\"sieve\"],\"articleSection\":[\"CentOS\",\"Email Servers\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/\",\"name\":\"Dovecot Sieve and Roundcube on CentOS 6 Setup | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/install-and-set-up-roundcube-webmail-interface.png\",\"datePublished\":\"2014-01-10T18:48:42+00:00\",\"dateModified\":\"2025-07-22T08:39:52+00:00\",\"description\":\"This guide explains Dovecot Sieve and Roundcube setup on CentOS 6 for those seeking email filtering solutions.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/install-and-set-up-roundcube-webmail-interface.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/install-and-set-up-roundcube-webmail-interface.png\",\"width\":400,\"height\":300,\"caption\":\"Install and set-up Roundcube webmail interface\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-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 set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6\"}]},{\"@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":"Dovecot Sieve and Roundcube on CentOS 6 Setup | RoseHosting","description":"This guide explains Dovecot Sieve and Roundcube setup on CentOS 6 for those seeking email filtering solutions.","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-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6","og_description":"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-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":"2014-01-10T18:48:42+00:00","article_modified_time":"2025-07-22T08:39:52+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6","datePublished":"2014-01-10T18:48:42+00:00","dateModified":"2025-07-22T08:39:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/"},"wordCount":613,"commentCount":11,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png","keywords":["Dovecot","filter","mailserver","rosehosting","roundcube","sieve"],"articleSection":["CentOS","Email Servers","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/","name":"Dovecot Sieve and Roundcube on CentOS 6 Setup | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png","datePublished":"2014-01-10T18:48:42+00:00","dateModified":"2025-07-22T08:39:52+00:00","description":"This guide explains Dovecot Sieve and Roundcube setup on CentOS 6 for those seeking email filtering solutions.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/11\/install-and-set-up-roundcube-webmail-interface.png","width":400,"height":300,"caption":"Install and set-up Roundcube webmail interface"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-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 set up server-side email filtering with Dovecot Sieve and Roundcube on CentOS 6"}]},{"@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\/3025","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=3025"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3025\/revisions"}],"predecessor-version":[{"id":50862,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3025\/revisions\/50862"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/2699"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=3025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=3025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=3025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}