Install Extmail on RHEL5

Source: Internet
Author: User
Extmail is a high-performance, free Webmail software written in perl for large-capacity/ISP-level applications. IT is copyrighted by GPL, and its original intention is to design an IT application environment that adapts to the current rapid development, to meet the changing needs of users, and can be quickly developed, improved, and upgraded, adaptable to powerful webmail systems. Extmail is also designed as a system that can replace some mainstream webmail software at home and abroad, such as SqWebMail, OpenWebmail and squir.

Extmail is a high-performance, free Webmail software written in perl for large-capacity/ISP-level applications. IT is copyrighted by GPL, and its original intention is to design an IT application environment that adapts to the current rapid development, to meet the changing needs of users, and can be quickly developed, improved, and upgraded, adaptable to powerful webmail systems.

Extmail is also designed as a system that can replace some mainstream webmail software at home and abroad, such as SqWebMail, OpenWebmail, squirrel, and Igenus.

There are quite a few popular Unix platform webmail software on the Internet, some of which are still very powerful, but in practical applications, especially in environments with high requirements such as ISP, enterprise post office, and office mail platform, these webmail software exposes many shortcomings. Some have high installation requirements and many software packages depend on each other, some of them are difficult to modify because they are not templated. Some of them are slow, some have simple functions, some have poor compatibility, some have poor email resolution capabilities, and many others do not support multi-language display.

Therefore, in order to adapt to the strict IT application environment, we urgently need a webmail system with practical functions, which is easy to modify, fast, stable, and compatible, extmail is designed under such requirements.

Now, install Extmail to manage our own mail server.

1. Preparations before installation: 1. Install the required rpm package, which includes the following:

Httpd, php, php-mysql, mysql, mysql-server, mysql-devel, openssl-devel, dovecot, perl-DBD-MySQL, tcl, tcl-devel, libart, libart-devel

2. Disable sendmail and disable it with the Automatic startup function of the system:

# Service sendmail stop

# Chkconfig sendmail off

3. Install the rpm package used for the following development:

Development Libraries

Development Tools

Legacy Software Development

X Software Development

Method:

# Yum groupinstall "packge_group_name"

4. Start the mysql database and set the password for the root user of mysql:

# Service mysqld start

# Chkconfig mysqld on

# Mysqladmin-uroot password 'your _ password'

Ii. install and configure postfix

# Groupadd-g 2525 postfix

# Useradd-g postfix-u 2525-s/sbin/nologin-M postfix

# Groupadd-g 2526 postdrop

# Useradd-g postdrop-u 2526-s/bin/false-M postdrop

 

# Tar zxvf postfix-2.6.5.tar.gz

# Cd postfix 2.6.5

# Make makefiles 'ccargs =-DHAS_MYSQL-I/usr/include/mysql-DUSE_SASL_AUTH-DUSE_CYRUS_SASL-I/usr/include/sasl-DUSE_TLS ''' AUXLIBS =-L/usr/lib /mysql-lmysqlclient-lz-lm-L/usr/lib/sasl2-lsasl2-lssl-lcrypto'

# Make install follow the prompts below to enter the relevant path ([] indicates the default value, "]" indicates the input value, and omitted indicates the default value) install_root: [/]/

Tempdir: [/usr/local/src/postfix-2.6.5]/tmp

Config_directory: [/etc/postfix]/etc/postfix

Daemon_directory: [/usr/libexec/postfix] command_directory: [/usr/sbin] queue_directory: [/var/spool/postfix] sendmail_path: [/usr/sbin/sendmail] newaliases_path: [/usr/bin/newaliases] mailq_path: [/usr/bin/mailq] mail_owner: [postfix] setgid_group: [postdrop] html_directory: [no]/var/www/postfix_html manpages: [/usr/local/man] readme_directory: [no] to generate an alias binary file. If this step is ignored, the postfix efficiency will be extremely low: # newaliases 2. perform some basic configurations, test and start postfix and send emails

# Vi/etc/postfix/main. cf

Modify the following configurations

Myhostname = mail.test.com

Myorigin = test.com

Mydomain = test.com

Mydestination = $ myhostname, localhost. $ mydomain, localhost, $ mydomain

Mynetworks = 192.168.1.0/24,127.0 .0.0/8

Note: The myorigin parameter is used to specify the domain name of the sender; The mydestination parameter specifies the Domain Name of the recipient when the postfix receives the mail, that is, the mail of the domain name to be received by your postfix system; the myhostname parameter specifies the Host Name of the host running the postfix mail system. By default, the value is set to the local machine name. The mydomain parameter specifies your domain name. By default, postfix deletes the first part of myhostname as the value of mydomain. The mynetworks parameter specifies the network address of your network. The postfix system determines whether the user is remote or local based on the value, if it is a local network user, access is allowed. The inet_interfaces parameter specifies the network interface of the postfix system listener. Note: 1. In the postfix configuration file, the Parameter Line and comment line cannot be in the same line; 2. No quotation marks are required for any parameter value; otherwise, quotation marks are used as part of the parameter value; 3. Execute postfix reload after each parameter and its value to make it take effect. However, if inet_interfaces is modified, the postfix needs to be restarted. 4. If there are multiple values for a parameter, you can place them in different rows. You only need to place a space before each row; postfix regards the text line with the first character as a space or a tab as a continuation of the previous line. start postfix/usr/local/postfix/sbin/postfix start to connect postfix, verify the service startup status:

# Telnet localhost 25

Trying 127.0.0.1...

Connected to localhost. localdomain (127.0.0.1 ).

Escape character is '^]'.

220 mail.test.com ESMTP Postfix

Ehlo mail. test. com250-mail.test.com250-PIPELINING250-SIZE 1024116250-vrfy250-etrn250-enhancedstatuscodes250-8bitmime250 DSN

Mail from: root@test.com

250 2.1.0 OK

Rcpt to: RedHat@test.com

250 2.1.5 OK

Data

354 End data .

Subject: Mail test! Mail test !!!.

250 2.0.0 OK: queued as AB94A1A561

Quit

221 2.0.0 Bye

Connection closed by foreign host.

Switch to the redhat user to receive the Email: # su-redhat $ mailMail version 8.1 6/6/93. Type? For help.

"/Var/spool/mail/redhat": 1 message 1 new

> N 1 root@test.com Wed Sep 5 15/488 "Mail test! "

&

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.