The entire process of building an enterprise-class open source mail system

Source: Internet
Author: User
Tags ini php software
Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://xtony.blog.51cto.com/3964396/891140

The whole process of building an enterprise-class open source messaging system:

This process is to build the Enterprise mail system, in the enterprise mail this communication is inevitable. Of course you can choose Microsoft Exchange, but now most of the enterprise online running system is open source, so the implementation of this open source system of the mail system is also inevitable.

Benefits:
1. Open source means free

2. Freedom is the ability to freely use components to achieve the desired function

3. Convenient, is to find a machine to install an open source of Linux is the deployment

4. Maintenance requires specialized personnel (this is a little disadvantage, unlike the purchase of Microsoft Exchange, can buy services)

Implementing the Required components: Postfix+dovecot+cyrus Sasl+squirrelmail
First, platform construction

The first is the deployment of the lamp platform, in fact, except that MySQL is a must, like Apache if you do not need to webmail, PHP is to support the Web page, but in order to build a meet the needs of most enterprises, so are installed. The following are the use of the source mode installation, can also be directly yum installed.

1.1 Apache Installation:

#tar-zxf httpd-2.2.9.tar.gz-c/usr/local/src #cd/usr/local/src/httpd-2.2.9 #./configure--prefix=/usr/local/apache2 --enable-so--enable-rewrite #make #make Install


1.2 MySQL Installation:

First install the software:  #useradd  -M -s /sbin/nologin mysql  #tar  zxf  mysql-5.0.56.tar.gz -c /usr/local/src  #cd  /usr/local/src/mysql-5.0.56  #./configure  --prefix=/usr/local/mysql  #make   #make  install  post-installation configuration:  #cd  /usr/local/src/ mysql-5.0.56  #cp  support-files/my-medium.cnf /etc/my.cnf             #复制主配文件 (Medium database size)   #/usr/local/mysql/bin/mysql_install_db --user=mysql     #初始化     #chown  -R root:mysql /usr/local/mysql  #chown  -r  mysql /usr/local/mysql/var    #echo   "/usr/local/mysql/lib/mysql"  >> / etc/ld.so.conf  #添加库文件路径   #ldconfig                                                 #刷新库文件搜索路径     start   #/usr/local/ mysql/bin/mysqld_safe --user=mysql &       #后台安全启动     #cd  /usr/local/src/mysql-5.0.56  #cp  support-files/mysql.server /etc/init.d/mysqld       #复制启动脚本   #chmod  +x /etc/init.d/mysqld  #chkconfig  --add mysqld                                  #添加到系统自启动服务中   #chkconfig  mysqld on  #echo   "path= $PATH:/usr/local/mysql/bin"  >> /etc/profile # Set system Global Environment variables  PATH  values for easy use  Mysql  database commands  

1.3 PHP Software

Install software:  #tar  jxf php-5.2.6.tar.bz2 -C /usr/local/src  #cd  /usr/local/src/ php-5.2.6  #./configure --prefix=/usr/local/php5 --enable-mbstring \ --WITH-APXS2=/USR /local/apache2/bin/apxs --with-mysql=/usr/local/mysql \ --WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP5   #make   #make  test  #make  install  post-installation configuration:  #cd  /usr/local/src/php-5.2.6   #cp  php.ini-dist /usr/local/php5/php.ini  #复制配置文件     #vi  /usr/local/apache2/ conf/httpd.conf    #修改  Apache  Services main profile   loadmodule php5_module modules/ libphp5.so  confirm the existence of this line (otherwise recompile install Apache)   addtype application/x-httpd-php .php       #添加这行记录   directoryindex index.php index.html      # On this line add the  php  format home  

1.4 Testing
Apache Test
#vi/usr/local/apache2/htdocs/test.php

<?php phpinfo (); ?>

Enter the URL in IE browser http://ip/test.php
See page for PHP environment information presentation with Apache Service integration success ...
Mysql Test
#vi/usr/local/apache2/htdocs/testdb.php

<?php $link =mysql_connect (' locahost ', ' Test ', '), if (! $link) echo "Fail!!!" , else echo "Success!!!" ; Mysql_close ();?>

Enter the URL in IE browser http://ip/testdb.php
See "Success!!!" The typeface indicates the success of integration with Mysql service ...

Second, Postfix Software installation

The following is a formal installation of the components of the mail system:

2.Postfix (core component, provide letter)
2.1 Stop system comes with SendMail software
#service sendmail stop
#chkconfig--level sendmail off
2.2 Compiling and installing the Postfix software

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.