{"id":465,"date":"2010-03-30T17:54:34","date_gmt":"2010-03-30T09:54:34","guid":{"rendered":"http:\/\/himiko.dnsalias.net\/wordpress\/?p=465"},"modified":"2010-04-13T09:42:54","modified_gmt":"2010-04-13T01:42:54","slug":"setting-up-sieve-in-osx","status":"publish","type":"post","link":"https:\/\/himiko.cube.sg\/wp\/2010\/03\/setting-up-sieve-in-osx\/","title":{"rendered":"Setting up Sieve in OSX"},"content":{"rendered":"<p>Server side mail filtering is a beautiful thing. Here are some useful instructions that i have found on how to set it up using OSX. I believe that the process would be very similar in the other UNIXes. There are, however, a couple of things to note in the setup.<!--more--><\/p>\n<ul>\n<li>It apparently isn&#8217;t necessary to have a separate mail admin account before sieve works.<\/li>\n<li>Following the steps below, the most important troubleshooting step is to check if port 2000 is open and listening. This can be done by using\n<pre>netstat -an | grep 2000<\/pre>\n<\/li>\n<li>Creating the\u00a0<em>\/usr\/sieve<\/em> directory with\u00a0<strong>_cyrus:mail<\/strong> permissions is important<\/li>\n<li>After installing\u00a0<strong>avelsieve<\/strong> from\u00a0<a href=\"http:\/\/email.uoa.gr\/projects\/squirrelmail\/\" target=\"_top\">http:\/\/email.uoa.gr\/projects\/squirrelmail\/<\/a>, make sure that you change the authentication to CRAM-MD5<\/li>\n<\/ul>\n<p>In a nutshell, the way to setup sieve would be<\/p>\n<ol>\n<li>Configure the imapd.conf file to setup the sieve directory<\/li>\n<li>Setup \/etc\/services to open sieve for port 2000 on TCP<\/li>\n<li>Restart the mail service<\/li>\n<li>Download and install\u00a0<strong>avelsieve<\/strong> into\u00a0<em>\/etc\/squirrelmail\/plugins<\/em> and place the configuration file into its config directory<\/li>\n<li>Change the configuration and change the authentication method from PLAIN into CRAM-MD5<\/li>\n<li>Enable the new plugin in squirrelmail configuration by running conf.pl<\/li>\n<li>Restart the mail service<\/li>\n<\/ol>\n<p>For the individual users, it is possible then to login to squirrelmail, click on the new\u00a0<strong>Filters<\/strong> link and setup the filters the way you want to.<\/p>\n<p><strong>Note:<\/strong> One interesting thing is that i wasn&#8217;t able to test the system by sending an email to myself. However, mails that are sent from another account seems to work fine. This oddity might be because i am using fetchmail to gather my emails but i can&#8217;t confirm this.<\/p>\n<p>Some useful articles i found for setup is attached below.<\/p>\n<ul>\n<li><a rel=\"attachment wp-att-466\" href=\"http:\/\/himiko.dnsalias.net\/wordpress\/2010\/03\/30\/setting-up-sieve-in-osx\/sieve\/\">Sieve on OSX<\/a>: Setting up Sieve. Original article\u00a0http:\/\/www.netmojo.ca\/blog\/2007\/12\/01\/setting-up-sieve-and-vacation-messages-on-mac-os-x-server\/<\/li>\n<li><a href=\"http:\/\/www.afp548.com\/article.php?story=20080106215609968&amp;query=sieve\" target=\"_top\">http:\/\/www.afp548.com\/article.php?story=20080106215609968&amp;query=sieve<\/a><\/li>\n<\/ul>\n<iframe src=\"\/\/docs.google.com\/viewer?url=http%3A%2F%2Fhimiko.dnsalias.net%2Fwordpress%2Fwp-content%2Fuploads%2F2010%2F03%2Fsieve.pdf&hl=en_US&embedded=true\" class=\"gde-frame\" style=\"width:100%; height:500px; border: none;\" scrolling=\"no\"><\/iframe>\n<p class=\"gde-text\"><a href=\"http:\/\/himiko.dnsalias.net\/wordpress\/wp-content\/uploads\/2010\/03\/sieve.pdf\" class=\"gde-link\">Download (PDF, Unknown)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Server side mail filtering is a beautiful thing. Here are some useful instructions that i have found on how to set it up using OSX. I believe that the process would be very similar in the other UNIXes. There are, however, a couple of things to note in the setup.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[16],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-apple","tag-snippets"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paCfEy-7v","_links":{"self":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":6,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/465\/revisions\/657"}],"wp:attachment":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}