{"id":425,"date":"2018-07-27T06:51:32","date_gmt":"2018-07-27T06:51:32","guid":{"rendered":"http:\/\/linuxresellerwebhosting.in\/blog\/?p=425"},"modified":"2018-08-20T06:52:27","modified_gmt":"2018-08-20T06:52:27","slug":"easy-steps-to-install-squirrelmail-on-cent-os-7","status":"publish","type":"post","link":"https:\/\/linuxresellerwebhosting.in\/blog\/easy-steps-to-install-squirrelmail-on-cent-os-7\/","title":{"rendered":"Easy Steps to Install Squirrelmail on Cent OS 7"},"content":{"rendered":"<p>Hi All,<\/p>\n<p>Today we are going to see how to install SquirrelMail on Cent OS 7.<\/p>\n<p>you will need to add EPEL repository into your system using the following command.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    yum -y <span class=\"token function\">install<\/span> epel-release<\/code><\/pre>\n<p>Now you can install Squirrelmail using the following command.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    yum -y <span class=\"token function\">install<\/span> squirrelmail<\/code><\/pre>\n<p>you can configure it by running the configuration script.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    <span class=\"token function\">cd<\/span> \/usr\/share\/squirrelmail\/config\/\r\n    .\/conf.pl<\/code><\/pre>\n<p>You will see following output.<\/p>\n<pre class=\" language-bash\"><code class=\" language-bash\">    SquirrelMail Configuration <span class=\"token keyword\">:<\/span> Read: config.php <span class=\"token punctuation\">(<\/span>1.4.0<span class=\"token punctuation\">)<\/span>\r\n    ---------------------------------------------------------\r\n    Main Menu --\r\n    1.  Organization Preferences\r\n    2.  Server Settings\r\n    3.  Folder Defaults\r\n    4.  General Options\r\n    5.  Themes\r\n    6.  Address Books\r\n    7.  Message of the Day <span class=\"token punctuation\">(<\/span>MOTD<span class=\"token punctuation\">)<\/span>\r\n    8.  Plugins\r\n    9.  Database\r\n    10. LanguagesD.  Set pre-defined settings <span class=\"token keyword\">for<\/span> specific IMAP serversC   Turn color off\r\n    S   Save data\r\n    Q   Quit<\/code><\/pre>\n<p>Change the organisation name, logo and title according to your need. Once done, return to main menu using\u00a0<code>R<\/code>\u00a0command. In main menu choose option 2 for Server settings.<\/p>\n<p>Change your domain name by selecting option 1.<\/p>\n<pre class=\" language-bash\"><code class=\" language-bash\">  The domain name is the suffix at the end of all email addresses.  If <span class=\"token keyword\">for<\/span> example, your email address is jdoe@example.com, <span class=\"token keyword\">then<\/span> your domain would be example.com.<\/code><\/pre>\n<p><code class=\" language-bash\"><span class=\"token punctuation\">[<\/span>localhost<span class=\"token punctuation\">]<\/span>: yourdomain.com<\/code><\/p>\n<p>Now save your setting by giving\u00a0<code>S<\/code>\u00a0command and finally quit using\u00a0<code>Q<\/code>\u00a0command.<\/p>\n<p>Now you will need to install the Apache web server, so that we can access Squirrelmail using web interface. Run the following command to install Apache web server.<\/p>\n<p>Run the following command to install Apache web server.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    yum -y <span class=\"token function\">install<\/span> httpd<\/code><\/pre>\n<p>Once Apache is installed, edit the configuration file to add a new virtual host.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    <span class=\"token function\">nano<\/span> \/etc\/httpd\/conf\/httpd.conf<\/code><\/pre>\n<pre class=\"language-bash\"><code class=\" language-bash\">   Alias \/webmail \/usr\/share\/squirrelmailOptions Indexes FollowSymLinks\r\n        RewriteEngine On\r\n        AllowOverride All\r\n        DirectoryIndex index.php\r\n        Order allow,deny\r\n        Allow from all<\/code><\/pre>\n<p>Save the file and start and enable Apache web server using the following commands.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    systemctl start httpd\r\n    systemctl <span class=\"token function\">enable<\/span> httpd<\/code><\/pre>\n<p>Now create email users, run the following command to add a user.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    <span class=\"token function\">useradd<\/span> -m liptan -s \/sbin\/nologin\r\n    <span class=\"token function\">passwd<\/span> liptan<\/code><\/pre>\n<p>Theabove command will add a new user\u00a0<code>liptan<\/code>\u00a0and the attribute\u00a0<code>-s \/sbin\/nologin<\/code>\u00a0will deny login using SSH. Last command will create a password for the new user.<\/p>\n<p>Now you can browse Squirrelmail by going to following link into the browser.<\/p>\n<pre class=\"language-bash\"><code class=\" language-bash\">    http:\/\/domainn.com\/webmail<\/code><\/pre>\n<p>Thanks for watching this tutorial \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi All, Today we are going to see how to install SquirrelMail on Cent OS 7. you will need to<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[1],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":1,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":426,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions\/426"}],"wp:attachment":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}