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
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:
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 =
#}
/* 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: 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
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