In the past few days, because the company's email system has been increasingly bloated for a long time (mdaemon), you need to select an open-source email system for business transformation. Through data comparison, I chose Iredmail and Zmail, which are the most recent open-source email systems and are not necessarily suitable for the company's business. I summarized my recent experiments and finally chose Iredmail, I hope to help my friends who are interested in an open-source email system.
Iredmail
Precautions before installation:
Learn about iRedMail on the official website;
2. Select the appropriate linuxrelease version (I chose 64-bit centos6.4 iredmail-0.8.6.tar.bz2)
The installation of iredmail requires a clean system environment, which means that the server does not have components related to iredmail, such as apache, mysql, OpenLDAP, postfix, Dovecot, and Amavisd. Otherwise, the original configuration file will be overwritten, and the installation of iredmail may even fail.
To install iredmail, you must meet the following two conditions:
1. A clean system, such as RHEL, CentOS, Ubuntu, Scientific, and other Linux systems.
2. No less than MB of memory.
Preparations before installation
1. Set a fully qualified domain name (FQDN) Host Name
Run the command hostname-f to view the current host name:
$ Hostname-f
Demo.iredmail.org
In RHEL/CentOS/Scientific Linux, setting hostname usually changes the following two files:
/Etc/sysconfig/network host name settings.
/Etc/hosts host name resolution, which must be placed first.
2. Activate the yum software library to install the new software package.
The configuration file of the CentOS system software library is in the/etc/yum. repos. d/directory with the suffix ". repo". Open these files. If "enabled = 1" is included, it indicates that the files have been activated.
3. Download iRedMail
You can also go to the official website to download http://www.iredmail.com/download.html
Decompress the package:
# Cd/root/
# Tar xjf iRedMail-x.y.z.tar.bz2
Start iRedMail Installation
If the server is in China, because the domain name is walled, you need to open the file/root/iRedMail-x.y.z/pkgs/get_all.sh, find iredmail.org with 173.254.22.21.
# IRedMail-x.y.z/cd/root/
# Bash iRedMail. sh
The following is the installation:
1) Welcome to the installation page.
2) Specify the storage mailbox path. The default value is/var/vmail /.
3) Select the backend of the storage account and select the one you are familiar. Then you can manage your account in iRedAdmin.
4) if the selected backend is OpenLDAP, two questions will be asked next.
4.1) LDAP suffix
4.2) LDAP Password
5) set the mysql root Password
6) set your first email domain name
7) set the mailbox management address
8) set the mailbox background management password
9) set the mailbox User Password
10) Select an optional component for installation (all installed by default)
11) set the default language
After answering these questions, the installer will ask whether to start installation. Enter y.
Important things to know after installation
1. Read/root/iRedMail-x.y.z/iRedMail. tips, which contains information related to iredmail
2. Set dns record http://code.google.com/p/iredmail/wiki/DNS_SPF for SPF
3. Set DNS record http://code.google.com/p/iredmail/wiki/DNS_DKIm for DKIM
Webmail and other program Portals
Webmail http: // your_server/mail/(or/webmail,/roundcube)
IRedAdmin (admin panel) httpS: // your_server/iredadmin/
PhpMyAdmin httpS: // your_server/phpmyadmin/
PhpLDAPadmin httpS: // your_server/phpldapadmin/
Awstats httpS: // your_server/awstats. pl? Config = web (or? Config = smtp)
Iredmail background management interface https: // your_server/iredadmin/
Https: // your_server/mail/is the user's own email page. It is very comfortable and concise. You can try to send an email to him.
We mentioned above that we should transform the mail system into our own according to the business, it must be changed to the source code. At first, I had another misunderstanding that the entire email system was written by the iRedMail author. After seeing the source code, I realized that the iRedMail author wrote the iredadmin Management Terminal (The author is a Chinese compatriot: zhang huangbin. I am very grateful to him and hope that the domestic open source will become better and better). The web. py framework is used.
The personal mail system interface is a Roundcube Based on the webmail service and uses the php language. He is the one we want to transform.
Iredmail has many plug-in functions that can be downloaded from Roundcube.
Steps:
Plug-ins are placed under the plugins folder,
[Root @ mail plugins] # pwd
/Var/www/roundcubemail/plugins
Modify the plug-in configuration file and the main. ini. php configuration file.
[Root @ mail config] # pwd
/Var/www/roundcubemail/config
// List of active plugins (in plugins/directory)
$ Rcmail_config ['ins ins'] = array ("password", "managesieve", "globaladdressbook", "emoticons", "userinfo", "jqueryui", "compose_addressbook ",);
Well, basically all of the above is what zmail will introduce later.