Red hat Enterprise 6.0 email server with WEB Interface

Source: Internet
Author: User

Red hat Enterprise 6.0 email server with WEB Interface

Install the software package www.2cto.com
Extmail-1.2.tar.gz extman-1.1.tar.gz
Dovecot-mysql bind mysql-server perl-GD-2.45-1.el6.rfx.x86_64.rpm perl-CGI * perl-Unix-Syslog-1.1-1.el6.rf.x86_64.rpm mod_perl

I installed it directly with yum.
Www.2cto.com
Decompress extmail
Tar zxvf extmail-1.2.tar.gz-C/var/www/html/
Decompress extman
Tar zxvf extman-1.1.tar.gz-C/var/www/html/
Cd/var/www/html
Music extmail-1.2/extmail
Music extman-1.1/extman
Cd extmail
Mv webmail. cf. default webmail. cf
Useradd-M-s/sbin/nologin-u 1000 postadmin
Open the configuration file and modify the following content.
Vim webmail. cf
SYS_CONFIG =/var/www/html/extmail/
SYS_LANGDIR =/var/www/html/extmail/lang
SYS_TEMPLDIR =/var/www/html/extmail/html
SYS_MAILDIR_BASE =/mailbox
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
Open the httpd configuration file
Vim/etc/httpd/conf/httpd. conf
 
<VirtualHost 10.0.0.1: 80>
ServerName www.likun.com
DocumentRoot/var/www/html/extmail/html/
ScriptAlias/extmail/cgi/var/www/html/extmail/cgi
Alias/extmail/var/www/html/extmail/html
SuexecUserGroup postadmin
</VirtualHost>
 
Chown-R postadmin. postadmin/var/www/html/extmail/cgi/
Chown-R postadmin. postadmin/var/www/html/extman/cgi/
Store emails in/create a folder
Mkdir mailbox
Grant Permissions
Chown postadmin. postadmin mailbox
Cd/var/www/html/extman/
Mv webman. cf. default webman. cf
Open the background configuration file
Vim webman. cf
Modify the following
SYS_CONFIG =/var/www/html/extman/
SYS_LANGDIR =/var/www/html/extman/lang
SYS_TEMPLDIR =/var/www/html/extman/html
SYS_MAILDIR_BASE =/mailbox
Open the httpd configuration file
Vim/etc/httpd/conf/httpd. conf
Add two sentences to the VM:
Original:
<VirtualHost 10.0.0.1: 80>
ServerName www.likun.com
DocumentRoot/var/www/html/extmail/html/
ScriptAlias/extmail/cgi/var/www/html/extmail/cgi
Alias/extmail/var/www/html/extmail/html
SuexecUserGroup postadmin
</VirtualHost>
After modification
<VirtualHost 10.0.0.1: 80>
ServerName www.likun.com
DocumentRoot/var/www/html/extmail/html/
ScriptAlias/extmail/cgi/var/www/html/extmail/cgi
Alias/extmail/var/www/html/extmail/html
SuexecUserGroup postadmin
ScriptAlias/extman/cgi/var/www/html/extman/cgi
Alias/extman/var/www/html/extman/html
</VirtualHost>
Cd/var/www/html/extman/docs
[Root @ localhost docs] # mysql-u root-p <extmail. SQL
Enter password:
[Root @ localhost docs] # mysql-u root-p <init. SQL
Enter password:
Background initial password extmail * 123 *
Mkdir/tmp/extman
Chmod 777/tmp/extman/
Modify the postfix configuration file
Vim/etc/postfix/main. cf
Modify the following
Myhostname = mail.likun.com
Mydomain = likun.com
Myorigin = $ mydomain
Inet_interfaces = all
Add the following
Virtual_mailbox_base =/mailbox/
Virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
Virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
Virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
Virtual_uid_maps = static: 1000
Virtual_gid_maps = static: 1000
Virtual_transport = virtual
 
Cd/etc/postfix
Vim mysql_virtual_alias_maps.cf
Add content
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = alias
Select_field = goto
Where_field = address
Additional_conditions = AND active = '1'
 
Vim mysql_virtual_domains_maps.cf
Add content
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = domain
Select_field = domain
Where_field = domain
Additional_conditions = AND active = '1'
 
Vim mysql_virtual_limit_maps.cf
Add content
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = mailbox
Select_field = quota
Where_field = username
Additional_conditions = AND active = '1'
 
 
Vim mysql_virtual_mailbox_maps.cf
Add content
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = mailbox
Select_field = maildir
Where_field = username
Additional_conditions = AND active = '1'
 
Vim mysql_virtual_sender_maps.cf
Add content
User = extmail
Password = extmail
Hosts = localhost
Dbname = extmail
Table = mailbox
Select_field = username
Where_field = username
Additional_conditions = AND active = '1'
 
Open the dovecot configuration file
Vim/etc/dovecot. conf
Enable pop3
Protocols = imap pop3 lmtp
Cd/etc/dovecot/conf. d/
 
Vim 10-auth.conf
Modify the following
Disable_plaintext_auth = on
Auth_mechanic ISMs = plain login
#! Include auth-system.conf.ext
! Include auth-sql.conf.ext
 
Vim 10-mail.conf
Modify the following
Mail_location = maildir:/Mailbox/% d/% n/maildir/
# Mail_location = mbox :~ /Mail: INBOX =/var/mail/% u
# Mail_location = mbox:/var/mail/% d/% 1n/% n: INDEX =/var/indexes/% d/% 1n/% n
 
Vim 10-master.conf
Modify the following
# Unix_listener auth-userdb {
# Mode = 0600
# User =
# Group =
#}
 
# Postfix smtp-auth
Unix_listener/var/spool/postfix/private/auth {
Mode = 0666
}
 
Configure DNS
Vim/etc/named. conf
 
Modify the following
Options {
// Listen-on port 53 {127.0.0.1 ;};
// Listen-on-v6 port 53 {: 1 ;};
Directory "/var/named ";
// Dump-file "/var/named/data/cache_dump.db ";
// Statistics-file "/var/named/data/named_stats.txt ";
// Memstatistics-file "/var/named/data/named_mem_stats.txt ";
// Allow-query {localhost ;};
// Recursion yes;
 
// Dnssec-enable yes;
// Dnssec-validation yes;
// Dnssec-lookaside auto;
 
/* Path to isc dlv key */
// Bindkeys-file "/etc/named. iscdlv. key ";
};
Add at last
Zone "likun.com "{
Type master;
File "likun.com. zone ";
};
 
Cd/var/name
Cp-p named. empty likun.com. zone
 
Vim likun.com. zone
Modify content
$ TTL 3 H
@ In soa localhost. rname. invalid .(
0; serial
1D; refresh
1 H; retry
1 W; expire
3 H); minimum
NS localhost.
Www in a 10.0.0.1
Mail in a 10.0.0.1
@ In mx 10 mail.likun.com.
~
Test DNS
[Root @ localhost named] # nslookup
> Www.likun.com
Server: 10.0.0.1
Address: 10.0.0.1 #53
 
Name: www.likun.com
Address: 10.0.0.1
> Mail.likun.com
Server: 10.0.0.1
Address: 10.0.0.1 #53
 
Name: mail.likun.com
Address: 10.0.0.1
> Set type = mx
> Likun.com
Server: 10.0.0.1
Address: 10.0.0.1 #53
 
Likun.com mail exchanger = 10 mail.likun.com.
> Exit
 
[Root @ localhost named] #
 
Open background web Input http://mail.likun.com/extman
 

Enter the initial password
 
After logging on to the background, delete the original domain in the domain list and create a new domain.
Note: You must register and enable it. Otherwise, you cannot register it directly. If you do not enable free registration, you can log on to the background for registration.

 
Save and open web Input http://mail.likun.com
 
Registered email
 

I have registered a aaa@likun.com bbb.@likun.com.
Login test after registration
 

 
 
 
 

 
 
 

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.