Install postfix-based full-featured email server on linux (3)

Source: Internet
Author: User
Article Title: Install postfix-based full-featured email server on linux (3 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

3. apache configuration

Extmail must change the identity of the user running apache server to the user of your mail delivery agent. In this example, the suexec function of apache server is enabled, therefore, use the following method to specify the running identity of the VM. In this example, the MDA is included in the postfix, so it is specified as the postfix User:

  

ServerName mail.benet.org

DocumentRoot/var/www/extsuite/extmail/html/

ScriptAlias/extmail/cgi/var/www/extsuite/extmail/cgi

Alias/extmail/var/www/extsuite/extmail/html

SuexecUserGroup postfix

  

Modify the cgi execution file owner as an apache running user:

# Chown-R postfix. postfix/var/www/extsuite/extmail/cgi/

If you have not enabled the suexec function of the apache server, you can use the following methods:

# Vi/etc/httpd. conf

User postfix

Group postfix

  

ServerName mail.benet.org

DocumentRoot/var/www/extsuite/extmail/html/

ScriptAlias/extmail/cgi/var/www/extsuite/extmail/cgi

Alias/extmail/var/www/extsuite/extmail/html

  

4. Dependency Solution

Extmail will use the perl DBD: Mysql and Unix: syslogd features, you can go to the http://search.cpan.org search to download the original code package for installation.

Http://cpan.modperl.cn/authors/id/M/MH/MHARNISCH/Unix-Syslog-1.0.tar.gz

# Tar zxvf Unix-Syslog-0.100.tar.gz

# Cd Unix-Syslog-0.100

# Perl Makefile. PL

# Make

# Make install

DBD-Mysql is currently the latest version of DBD-mysql-4.005, But it and the system in combination with perl will cause extmail can not be used normally, so we use version 3:

PATH =/usr/local/mysql/bin: $ PATH; export PATH

Rpm-qa perl-DBI # installation without Installation

Rpm-ivh perl-DBI-1.53-2.fc7.i386.rpm

# Tar zxvf DBD-mysql-3.0002_4.tar.gz

# Cd DBD-mysql-3.0002_4

# Perl Makefile. PL (if the same class Can't exec "mysql_config": No such file or directory at Makefile appears in this step. PL line 76. the error is because your mysql bin directory is not output to the $ PATH environment variable)

# Make

# Make install

So far, your Webmail is ready for use. You can enter the name of the specified VM in your browser for access, as shown below:

Http://mail.benet.org

13. Install Extman-0.2.2

Http://www.extmail.org/cgi-bin/download.cgi

# Tar zxvf extman-0.2.2.tar.gz

# Music extman-0.2.2/var/www/extsuite/extman

Modify the configuration file to meet the needs of this example:

# Vi/var/www/extsuite/extman/webman. cf

SYS_MAILDIR_BASE =/home/domains

This is the user mail storage directory you set in the previous article. You can change it:

SYS_MAILDIR_BASE =/var/spool/mail

SYS_MYSQL_SOCKET =/var/lib/mysql. sock

Here, modify it:

SYS_MYSQL_SOCKET =/tmp/mysql. sock

Use extmail. SQL and init. SQL In the docs directory under the extman source code directory to create a database:

# Mysql-u root-p

# Mysql-u root-p

Modify the owner of the cgi directory:

# Chown-R postfix. postfix/var/www/extsuite/extman/cgi/

[1] [2] [3] [4] [5] Next page

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.