{"id":183,"date":"2011-06-05T16:51:50","date_gmt":"2011-06-05T23:51:50","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=183"},"modified":"2011-06-05T20:47:25","modified_gmt":"2011-06-06T03:47:25","slug":"installing-squirrelmail-to-centos","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=183","title":{"rendered":"Installing Squirrelmail to CentOS"},"content":{"rendered":"<p>Squirrelmail is a simple PHP based Webmail capability that&#8217;s very easy to install on CentOS Linux.<\/p>\n<p>Installing Squirrelmail is as easy as running the following command as root on your CentOS system:<\/p>\n<p><code>yum -y install squirrelmail<br \/>\n<\/code><br \/>\nBecause Squirrelmail is included in the Base distro of CentOS!<\/p>\n<p>I usually install it along with the Sendmail Mail Server software, so I also do:<\/p>\n<p><code>yum -y install sendmail<br \/>\n<\/code><br \/>\nIf the pre-requisites for the squirrelmail package doesn&#8217;t install sendmail anyway.<\/p>\n<p>You&#8217;ll probably want to use IMAP via localhost for Squirrelmail to interact with your Mail &#038; mailboxes, so also install Dovecot, via:<\/p>\n<p><code>yum -y install dovecot<br \/>\n<\/code><br \/>\nThen configure Dovecot by setting the &#8216;protocols =&#8217; &#038; ssl file lines in \/etc\/dovecot.conf to be:<\/p>\n<p><code>protocols = imap imaps<br \/>\nssl_cert_file = \/etc\/pki\/dovecot\/certs\/dovecot.pem<br \/>\nssl_key_file = \/etc\/pki\/dovecot\/private\/dovecot.pem<br \/>\n<\/code><br \/>\nThen save that update &#038; restart Dovecot with <code>service dovecot restart<\/code>  as the install of Dovecot created those SSL Cert &#038; Key files.<\/p>\n<p>Best to restart your Apache webserver too after this, so do <code>service httpd restart<\/code>  and make sure the site(s) are running ok.<\/p>\n<p>Configure Squirrelmail itself by running the command <code>\/usr\/share\/squirrelmail\/config\/conf.pl<\/code>  as root (is best) and I suggest setting you own Organisation fields (press &#8216;1&#8217; &#038; then the number for each setting you&#8217;d like to change, all in a text-based window\/&#8217;ncurses&#8217; UI from a login shell on your CentOS host). Use the &#8216;s&#8217; command to save your config updates, then &#8216;Q&#8217; to exit the configurer.<br \/>\nPretty much all the other default settings of Squirrelmail are ok in CentOS &#038; you may need to make the conf.pl file executable with <code>chmod a+x \/usr\/share\/squirrelmail\/config\/conf.pl<\/code><\/p>\n<p>In a browser, go to &#8216;http:\/\/your-site-name.url\/webmail&#8217; to get to Squirrelmail and try to login with the username &#038; password of a Linux user on your CentOS host, if you are successful in logging in, create some emails &#038; send them off, get replies, etc.<br \/>\nIf the login failed, check the web server log files in \/var\/log\/httpd\/ <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Squirrelmail is a simple PHP based Webmail capability that&#8217;s very easy to install on CentOS Linux. Installing Squirrelmail is as easy as running the following command as root on your CentOS system: yum -y install squirrelmail Because Squirrelmail is included &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=183\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[35,34],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-network-presence","tag-open-source","tag-webmail"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":7,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":189,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/189"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}