Installing Dovecot and Squirrelmail in CentOS & SientificLinux
Note: This tutorial is a continuation of the Sendmail tutorial; please read through the Sendmail tutorial first before you attempt to install Dovecot or Squirrelmail.
Although most versions of CentOS come standard with a POP3/IMAP server, dovecot can be much easier to configure and works almost straight after installation. Both the POP3 and IMAP protocols are primarily used for receiving emails on a mail server, almost all mail servers these days support both protocols; however there is a slight difference between the two. The main different between these protocols is that the POP3 protocol retrieves the whole email for the client, once
the emails are retrieved they removed from the server; where as a IMAP stores only the header information on the client side and changes to the email can be kept track of. There are some advantages and disadvantages of each protocol; however I will leave it up to your discretion which you would prefer to use.
First things first, you will need to start out by installing both Dovecot and Squirrelmail using yum.
yum –y install dovecot squirrelmail
Next you will need to set the dovecot service to start on reboot and turn the service on
chkconfig dovecot on
service dovecot start
You will also need to edit the dovecot configuration file to setup mail boxes for each user. The configuration file is located at /etc/dovecot.conf
mail_location = maildir:~/Maildir
mail_location = mbox:~/mail:INBOX=/var/mail/%u
Restart dovecot so that the changes will take effect.
You will also need Apache and PHP installed in order to run Squirrelmail. To check if Apache is installed enter the following command:
rpm –qa httpd
rpm –qa php
CentOS generally comes installed with Apache and PHP however, if they are not installed for some reason you can use the following command to install them.
yum –y install httpd php
Next you will need to create a symbolic link of the Squirrelmail folder to the Apache root directory.
ln –s /usr/share/squirremail /var/www/html/mail
Then you will need to browse to the config directory to run the configuration script.
You will now need to go through the settings menu and choose the appropriate configuration for your server; you should not need to change much except for your domain name in server settings.
Finally you will need to modify your Apache configuration file to set an alias and allow for SymLinks so that Apache can read the files in the /mail directory. You can do this by adding the following lines to /etc/httpd/conf/httpd.conf
Alias /mail/ "/usr/share/squirrelmail/"
Allow from all
You will also need to restart Apache for these settings to take effect
service httpd restart
If you are connecting via a mail client such as outlook or thunderbird you can connect using IMAP or POP3 using your IP address, however it’s probably a good idea to create DNS records for both protocols. For my mail server I created two A records pop.example.com and imap.example.com, make sure that both records point to your server.
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...1 comment |
- Setup DNS Server On openSUSE 13.1 : What is DNS Server? As you might know, DNS, Domain Name System, is a system that resolves Domain ...0 comments |
- Install and Configure Samba share in Ubuntu 13.10 'Saucy Salamander' , 13.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comments |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...0 comments |
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .