Linux configuration Extmail mail usage and management platform

Source: Internet
Author: User
Tags pack rrdtool socket syslog install perl mail account mysql database root directory

I. Configuring EXTMAIL mail usage and management platform

1. Deploy Extmail Mail Use interface:

1> unpack: [Root@mail ~]# tar zxvf unix-syslog-1.1.tar.gz

[Root@mail ~]# tar zxvf dbi-1.607.tar.gz

[Root@mail ~]# tar zxvf dbd-mysql-4.011.tar.gz

Install Unix-syslog Package:

[Root@mail ~]# CD unix-syslog-1.1

[Root@mail unix-syslog-1.1]# Perl makefile.pl

[Root@mail unix-syslog-1.1]# make && make install

Install DBI Package:

[Root@mail unix-syslog-1.1]# CD ... /dbi-1.607

[Root@mail dbi-1.607]# Perl makefile.pl

[Root@mail dbi-1.607]# make && make install

Install Dbd-mysql Package:

[Root@mail dbi-1.607]# CD ... /dbd-mysql-4.011

[Root@mail dbd-mysql-4.011]# Perl makefile.pl

[Root@mail dbd-mysql-4.011]# make && make install

2> Install and configure the Extmail kit:

Extract and release the Extmail package to the Web document root directory of the Apache server:

[Root@mail ~]# tar zxf extmail-1.0.5.tar.gz-c/usr/local/apache2/htdocs

[Root@mail ~]# Cd/usr/local/apache2/htdocs

[Root@mail htdocs]# MV extmail-1.0.5 extmail

Set the owner and the group of the CGI subdirectory so that the Apache server has permission to perform suexec operations:

[Root@mail htdocs]# Cd/extmail

[Root@mail extmail]# chown-r postfix:postfix CGI

To create a WEBMAIL.CF configuration file:

[Root@mail extmail]# CP Webmail.cf.default WEBMAIL.CF

This article URL address: http://www.bianceng.cn/OS/Linux/201410/45497.htm

[Root@mail extmail]# VI webmail.cf//The configuration item that needs to be modified is the following figure

The main changes are as follows:

Sys_config =/usr/local/apache2/htdocs/extman///Program root directory

Sys_langdir =/usr/local/apache2/htdocs/extman/lang//Language Pack file directory

Sys_tyempldir =/usr/local/apache2/htdocs/extman/html//System Template Directory

Sys_maildir_base =/mailbox//message data store path

Sys_mysql_user = extmail//access to MYSQL database users

Sys_mysql_pass = extmail//access to MYSQL database user password

sys_mysql_db = extmail//Using database name

Sys_mysql_host = localhost//mysql server address

Sys_mysql_socket =/tmp/mysql.sock//mysql Socket file

3>. Modify the configuration in the httpd.conf file (add a virtual host) and restart the HTTPD service:

[Root@mail ~]# vi/usr/local/apache2/conf/httpd.conf

[Root@mail ~]#/usr/local/apache2/bin/apachectl Restart

4>. Log on and use the Extmail messaging system:

Access: http://mail.sjzz.com, use the default mail account "postmaster@extmail.org" login, the password is: "Extmail."

2. Deploy the Extman Web management interface:

1>. Install Perl Support Packages GD, File-tail, and RRDtool drawing engine tools:

Solution Package:

[Root@mail ~]# tar zxf gd-2.41.tar.gz

[Root@mail ~]# tar zxf file-tail-0.99.3.tar.gz

Install GD package:

[Root@mail ~]# CD GD-2.41

[Root@mail gd-2.41]# Perl makefile.pl

[Root@mail gd-2.41]# make && make install

Install File-tail Package:

[Root@mail gd-2.41]# CD ... /file-tail-0.99.3

[Root@mail file-tail-0.99.3]# Perl makefile.pl

[Root@mail file-tail-0.99.3]# make && make install

To install the Rrdrool drawing engine package:

[Root@mail ~]# RPM-IVH rrdtool-1.2.23-3.e15.i386.rpm

[Root@mail ~]# RPM-IVH rrdtool-perl-1.2.23-3.e15.i386.rpm

2> Install and configure the Extman kit:

Extract and release Extman files to the Web document root directory of the Apache server:

[Root@mail ~]# tar zxf extman-0.2.5.tar.gz-c/usr/local/apache2/htdocs

[Root@mail ~]# Cd/usr/local/apache2/htdocs

[Root@mail htdocs]# MV extman-0.2.5 Extman

Adjust the owner and the group of the CGI subdirectory so that the Apache server has permission to perform suexec operations:

[Root@mail htdocs]# chown-r postfix:postfix/usr/local/apache2/htdocs/extman/cgi

Create a system temporary session save directory and set the owner, group to Postfix:postfix:

[Root@mail htdocs]# Mkdir/tmp/extman

[Root@mail htdocs]# chown-r Postfix:postfix/tmp/extman

Modify the WEBMAN.CF profile: (You need to modify the following places, others can remain the default configuration)

[Root@mail extmail]# VI/USR/LOCAL/APACHE2/HTDOCS/EXTMAN/WEBMAN.CF

Sys_config =/usr/local/apache2/htdocs/extman///Program root directory

Sys_langdir =/usr/local/apache2/htdocs/extman/lang//Language Pack file directory

Sys_tyempldir =/usr/local/apache2/htdocs/extman/html//System Template Directory

Sys_maildir_base =/mailbox//message data store path

Sys_mysql_user = webman//Access MYSQL database user

Sys_mysql_pass = webman//access to MYSQL database user password

sys_mysql_db = extmail//Using database name

Sys_mysql_host = localhost//mysql server address

Sys_mysql_socket =/tmp/mysql.sock//mysql Socket file

3> Adjust the configuration in the httpd.conf file (add alias settings for Extman related directories) and restart the HTTPD service:

[Root@mail htdocs]# vi/usr/local/apache2/conf/httpd.conf

[Root@mail ~]#/usr/local/apache2/bin/apachectl Restart

4>. Log on and manage the Extman mail system:

Access Http://mail.sjzz.com/extman, using the default mail administrator account root@extmail.org login, password is extmail*123*

5> Configure a graphical log

Create a linked file for the Mailgraph_ext plug-in program in the Extman Suite and start the program:

[Root@mail ~]# \

in-sf/usr/local/apache2/htdocs/extman/addon/mailgraph_exe/mailgraph-init/usr/sbin/

[Root@mail ~]# \

in-sf/usr/local/apache2/htdocs/extman/addon/mailgraph_exe/qmonitor-init/usr/sbin/

[Root@mail ~]# mailgraph-init start

[Root@mail ~]# qmonitor-init start

If you need to boot the mailgraph-init, Qmonitor-init service automatically, you can add the relevant startup command to the Rc.local file:

[Root@mail ~]# echo "/usr/sbin/mailgraph-init start" >>/etc/rc.d/rc.local

[Root@mail ~]# echo "/usr/sbin/qmonitor-init start" >>/etc/rc.d/rc.local

To refresh the graphics log page, you can now display the graphics log.

This article from "Hello_ Small Strong" blog, please be sure to retain this source http://xiaozhuang.blog.51cto.com/4396589/868580

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.