& Lt; Establish extmail service in linux & gt;, linuxextmail

Source: Internet
Author: User
Tags rrdtool install perl vmail

<Establish extmail service in linux>, linuxextmail

Download 2 software packages: extmail-1.1.0.tar.gz extman-1.1.tar.gz

: Http://www.cpan.org/

Create an extsuite directory

Mkdir/var/www/extsuite

Decompress the two packages to this directory:

Tar zxf extman-1.1.tar.gz-C/var/www/extsuite

Tar zxf extmail-1.1.0.tar.gz-C/var/www/extsuite

 

Change the short name.

Mv extmail-1.1.0 extmail mv extman-1.1 extman

 

Switch to the background directory:

/Var/www/extsuite/extman/docs

Three cp file alias domain mailbox configuration file

Cp mysql_virtual_alias_maps.cf mysql_virtual_domains_maps.cf mysql_virtual_mailbox_maps.cf/etc/postfix/

 

Install mysql database yum isnatll mysql-server.x86_64-y

Add a password for mysql: mysql_secure_installation

Switch to the directory:/var/www/extsuite/extman/docs

See two files: extmail. SQL init. SQL mysql-pwestos <extmail. SQL

Vim init. SQL:

Mysql-pwestos <init. SQL mysql-uextmail-pextmail

 

Add the following parameters to the postfix main configuration file:

Useradd-u 800 vmail

Postconf-d | grep virtual

Postconf-e virtual_uid_maps = static: 800

Postconf-e virtual_gid_maps = static: 800

Postconf-e virtual_mailbox_base =/home/vmail/

Postconf-e virtual_alias_maps = mysql:/etc/postfixmysql_virtual_alias_maps.cf

Postconf-e virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf

Postconf-e virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf

Verify whether OK

Postmap-q "support@extmail.org" mysql:/etc/postfix/mysql_virtual_alias_maps.cf

Postmap-q "postmaster@extmail.org" mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

Postmap-q "extmail.org" mysql:/etc/postfix/mysql_virtual_domains_maps.cf

Cd/var/www/extsuite/extmail/

Less INSTALL

Find the following lines to write data to http.

NameVirtualHost *: 80

<VirtualHost *: 80>

ServerName mail.extmail.org

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

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

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

SuexecUserGroup vmail

</VirtualHost>

Cd cgi/chown vmail. vmail.-R

If you test the Apache service on a real machine, pay attention to the configuration parsing:

Vim/etc/hosts

/Etc/init. d/httpd restart/etc/init. d/mysqld restart/etc/init. d/postfix restart

Enter: mail@extmail.org in the browser

 

The error solution is as follows:

Extmail error:

Can't locate CGI. pm in @ INC (@ INC contains: /var/www/extsuite/extmail/libs/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5 /vendor_perl/usr/lib64/perl5/usr/share/perl5) at/var/www/extsuite/extmail/libs/Ext/CGI. pm line 20. BEGIN failed -- compilation aborted at/var/www/extsuite/extmail/libs/Ext/CGI. pm line 20. compilation failed in require at/var/www/extsuite/extmail/libs/Ext/App. pm line 23. BEGIN failed -- compilation aborted at/var/www/extsuite/extmail/libs/Ext/App. pm line 23. compilation failed in require at/var/www/extsuite/extmail/libs/Ext/App/Login. pm line 16. BEGIN failed -- compilation aborted at/var/www/extsuite/extmail/libs/Ext/App/Login. pm line 16. compilation failed in require at index. cgi line 20.

Solution: yum install perl-CGI

Error: Can't locate/var/www/cgi-bin/extmail // lang // en_US in @ INC (@ INC contains: /var/www/extsuite/extmail/libs/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5 /vendor_perl/usr/lib64/perl5/usr/share/perl5) at/var/www/extsuite/extmail/libs/Ext/Lang. pm line 65.

Solution: no master file exists.

[Root @ vm1 extmail] # cp webmail. cf. default webmail. cf

[Root @ vm1 extmail] # pwd/var/www/extsuite/extmail

Error:

Unix: Syslog not found, please install it first! (In cleanup) Undefined subroutine & Ext: Logger: do_closelog called at/var/www/extsuite/extmail/libs/Ext/Logger. pm line 86.

Solution:

No package: Unix-Syslog-1.1.tar.gz

# Perl Makefile. PL

 

 

Error in installing this package

Can't locate ExtUtils/MakeMaker. pm in @ INC (@ INC contains: /usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr /share/perl5 .) at Makefile. PL line 1. BEGIN failed -- compilation aborted at Makefile. PL line 1.

Solution

Yum install-y perl-ExtUtils-MakeMaker

# Perl Makefile. PL # make install

Error

DBI connect ('database = extmail; host = localhost; mysql_socket =/var/lib/mysql. sock ', 'db _ user ',...) failed: Access denied for user 'db _ user' @ 'localhost' (using password: YES) at/var/www/extsuite/extmail/libs/Ext/Auth/MySQL. pm line 45

Solution: An error occurred while accessing the database. Modify the master configuration file. SYS_MYSQL_USER = extmail SYS_MYSQL_PASS = extmail

 

Error: Can't chdir to/home/domains/extmail.org/postmaster/Maildir/, No such file or directory

Solution:

 

SYS_MAILDIR_BASE =/home/vmail

# Mail support@extmail.org send mail to make it create mail directory

Extmail background Configuration

Same operations on the background

NameVirtualHost *: 80 <VirtualHost *: 80> ServerName mail.example.com DocumentRoot/path/to/your/document/root/ScriptAlias/extman/cgi/var/www/extsuite/extman/cgi Alias/extman/var/www/extsuite /extman/html SuexecUserGroup vuser vgroup </VirtualHost>

Insert the following two rows: ScriptAlias/extman/cgi/var/www/extsuite/extman/cgi Alias/extman/var/www/extsuite/extman/html

Configuration written to Apache:

<VirtualHost *: 80>

ServerName mail.extmail.org

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

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

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

ScriptAlias/extman/cgi/var/www/extsuite/extman/cgi

Alias/extman/var/www/extsuite/extman/html

SuexecUserGroup vmail

</VirtualHost>

 

/Var/www/extsuite/extman chown vmail. vmail.-R

Verification Code

/Var/www/extsuite/extman

Cp webman. cf. default webman. cf

Vim webman. cf SYS_CAPTCHA_ON = 1

SYS_CAPTCHA_LEN = 4

Display the homepage:

Vim/etc/rc. local

/Var/www/extsuite/extman/daemon/cmdserver &

An error occurred while monitoring the background images:

Can't locate RRDs. pm in @ INC (@ INC contains: /var/www/extsuite/extman/libs/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5 /vendor_perl/usr/lib64/perl5/usr/share/perl5 .) at/var/www/extsuite/extman/libs/Ext/GraphLog. pm line 23. BEGIN failed -- compilation aborted at/var/www/extsuite/extman/libs/Ext/GraphLog. pm line 23. compilation failed in require at/var/www/extsuite/extman/libs/Ext/MgrApp/ViewLog. pm line 22. BEGIN failed -- compilation aborted at/var/www/extsuite/extman/libs/Ext/MgrApp/ViewLog. pm line 22. compilation failed in require at viewlog. cgi line 18.

Solution: Download package: rrdtool-perl-1.3.8-6.el6.x86_64.rpm yum localinstall rrdtool-perl-1.3.8-6.el6.x86_64.rpm

Although the monitoring directory is displayed, the following information is not displayed:

# Cp mailgraph_ext // usr/local/-r why cp to/usr/local?

/Usr/local/mailgraph_ext vim mailgraph-init: BASEDIR =/usr/local/mailgraph_ext

#/Usr/local/mailgraph_ext/mailgraph-init start

Error: Starting mail statistics grapher: mailgraph_ext Can't locate File/Tail. pm in @ INC (@ INC contains: /usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr /share/perl5 .) at/usr/local/mailgraph_ext/mailgraph_ext.pl line 296. BEGIN failed -- compilation aborted at/usr/local/mailgraph_ext/mailgraph_ext.pl line 296. starting queue statistics grapher: qmonitor

File-Tail-0.99.3.tar.gz package:

Tar-zxf File-Tail-0.99.3.tar.gz # cd File-Tail-0.99.3 # perl Makefile. PL

Error: File: Tail will be installed without debugging information. this information isn' t usefull unless you intend to tinker with the code. to install with debugging enabled, use: perl Makefile. pl logit Checking if your kit is complete... looks good Warning: prerequisite Time: HiRes 1.12 not found. writing Makefile for File: Tail

Solution: # yum install perl-Time-HiRes-y # perl Makefile. PL # make install

#/Usr/local/mailgraph_ext/mailgraph-init start

Then you will see graphical monitoring.

 

 

 

 

 

 

 

 

 

 


Setting up an email server in Linux

Install it directly with the linux integrated disk of u-mail. The operation is very simple. You can download it on their official website first, and then refer to the build method below.

How can I build an email server in linux? What are the most critical configuration files? What are their respective uses? Set up mail in linux

To build a server in linux, you can use postfix + extmail to build the server. There are many tutorials on the Internet. You can refer to them. Be careful when building the server, if there is no error, the building will soon be successful.

For more information, see the following document.
Wiki.extmail.org/extmail_solution_for_linux

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.