{"id":79,"date":"2007-09-02T09:08:55","date_gmt":"2007-09-02T17:08:55","guid":{"rendered":"http:\/\/learnbyblogging.com\/?p=79"},"modified":"2008-09-24T14:56:54","modified_gmt":"2008-09-24T22:56:54","slug":"installing-imap-server-on-solaris-10","status":"publish","type":"post","link":"https:\/\/learnbyblogging.com\/?p=79","title":{"rendered":"Installing IMAP server on Solaris 10"},"content":{"rendered":"<p>I run my own mail server at work for largely one reason &#8211; no restriction on the mail storage space. Our Corporate IT sets a limit on ~ 2-year worth of emails archive you&#8217;re allowed to keep and some set number of GB&#8217;s you are allocated. This is simply not enough for me. Having worked at Sun for 12 years, I have had emails all the way back to &#8217;95. Occasionally, I went back to find an old email and surprised my colleagues how &#8220;deep&#8221; of a memory I had. In order to do this (probably due to my hoarding and\/or control instinct), I must have my own mail server. Good thing is that Solaris is pretty good at relaying emails. I only have to worry about servicing the IMAP clients &#8211; my laptop, my PC at home and etc. <\/p>\n<p>Here are what I do (regularly, due to frequent change of servers) to set up an IMAP server on my work server running Solaris 10:<\/p>\n<p>1) Download and install the University of Washing IMAP server package from sunfreeware.com.<br \/>\n2) Download and install the opensll package sunfreeware.com.<br \/>\n3) In order to run secure SSL socket, you&#8217;d need to create an self-assigned SSL certificate:<br \/>\n    > \/usr\/local\/ssl\/bin\/openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 3650<br \/>\n4) cp imapd.pem \/usr\/local\/ssl\/certs<br \/>\n5) To add to svc servces, so the port 993 gets used for imaps:<br \/>\n    edit \/etc\/services add the following line in addition to &#8220;imap 143\/tcp&#8221;:<br \/>\n    imaps 993\/tcp<br \/>\n6) Due to the new Solaris SMF (Service Management Facilities), you&#8217;ll need to have IMAP added to the service. The easiest way to do this without constructing an esoteric svc manifest file, is to edit \/etc\/inet.conf and add the following line:<br \/>\nimaps stream tcp nowait root \/usr\/local\/sbin\/imapd imapd<br \/>\n7) Run the following command to convert to manifest file (\/var\/svc\/manifest\/network\/imaps-tcp.xml):<br \/>\ninetconv<br \/>\n8 ) Start the svc by running the following command:<br \/>\nsvcadm enable \/network\/imaps\/tcp<\/p>\n<p>Done. Not too bad but wouldn&#8217;t it be nice if the installation takes care of all these steps in one shot?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I run my own mail server at work for largely one reason &#8211; no restriction on the mail storage space. Our Corporate IT sets a limit on ~ 2-year worth of emails archive you&#8217;re allowed to keep and some set number of GB&#8217;s you are allocated. This is simply not enough for me. Having worked &hellip; <a href=\"https:\/\/learnbyblogging.com\/?p=79\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing IMAP server on Solaris 10<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-tips-for-computer"],"_links":{"self":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":0,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}