Linux + Postfix + Extmail + Dovecot build web page-based Mail System final: preparation phase: software package to be manually downloaded: postfix-2.6.5.tar.gzcourier-authlib-0.62.4.tar.bz2eextmail-1.2.tar.gzxtman-1.1.tar.gzTime-HiRes-1.9707.tar.gzFile-Tail-0.99.3.tar.gzr
Linux + Postfix + Extmail + Dovecot:
Preparation: software packages to be downloaded manually:
Postfix-2.6.5.tar.gz
Courier-authlib-0.62.4.tar.bz2
EExTmail-1.2.tar.gz
Xtman-1.1.tar.gz
Time-HiRes-1.9707.tar.gz
File-Tail-0.99.3.tar.gz
Rrdtool-1.2.23.tar.gz
1. Configure the yum source. Take the local disk as an example. Change REdAttach the Hat5.6 CD to the VM and use the followingCommandConfigure the yum source, which will be used in the following process.
Mkdir/Media/CdRom
Mount/dev/cdrom/media/cdrom
Rm/Etc/yum. repo/*-rf
Vim/etc/yum. repos. d/server. repo
- [Base]
- Name = InsTrUctor Server Repository
- Baseurl =File: // Media/cdrom/Server
- Gpgcheck = 0
- [VT]
- Name = policuctor VT Repository
- Baseurl = file: // media/cdrom/VT
- Gpgcheck = 0
- [Cluster]
- Name = Instructor Cluster Repository
- Baseurl = file: // media/cdrom/Cluster
- Gpgcheck = 0
- [ClusterStorage]
- Name = Instructor ClusterStorage Repository
- Baseurl = file: // media/cdrom/ClusterStorage
- Gpgcheck = 0
2. Configure your own dns server. I will use the dean.com domain as an example.
1) install bind
Yum install bind
Yum install caching-nameserver # This software package can automatically create a pure cache Domain Name Server
2) manually create a configuration file
Vim/etc/named
- Options {
- Directory"/Var/named";
- };
- Zone"."{
- Typehint;
- File"Named. ca";
- };
- Zone"Localhost"{
- Typemaster;
- File"Localhost. zone";
- };
- Zone"0.0.127.in-DdR. arpa"{
- Typemaster;
- File"Named. local";
- };
- Zone"Dean.com"{
- Typemaster;
- File"Dean.com. zone";
- };
- Zone"0.168.192.in-addr. arpa"{
- Typemaster;
- File& Quot; 192. arpa & quot";
- };
3) manually create a forward/reverse dean.com domain File
- Cd/var/named
- Vim dean.com. zone
- $ TTL86400
- Dean.com. in soa ns.dean.com. admin.dean.com .(
- 2011082301
- 1 H
- 10 M
- 7D
- 1D)
- NS ns.dean.com.
- MX 10 mail.dean.com.
- Ns.dean.com. in a 192.168.0.32
- Mail.dean.com. in a 192.168.0.32
- Vim 192. arpa
- $ TTL86400
- @ In soa ns.dean.com. admin.dean.com .(
- 2011082301
- 1 H
- 10 M
- 7D
- 1D)
- NS ns.dean.com.
- MX 10 mail.dean.com.
- 32 in ptr ns.dean.com.
- 32 in ptr mail.dean.com.
Chown: Named/var/named/*-R
Service named start
# Modifying host names
Vim/etc/sysconfig/network
HOSTNAME = mail.dean.com
Hostname mail.dean.com
Vim/etc/hosts
127.0.0.1 mail.dean.com localhost
# Modify the default DNS of the Virtual Machine and test whether the DNS we configured is normal.
Vim/etc/resolv. conf
Nameserver 192.168.0.32 # only retain this row.
Dig-t A mail.dean.com @ 127.0.0.1 # It indicates that 192.168.0.32 is normal.
Dig-x 192.168.0.32 @ 127.0.0.1 # normal resolution of mail.dean.com indicates normal
After the DNS is successfully established, the formal phase is as follows: (the entire architecture is slightly modified according to the instructor's article:
1. First install the relevant rpm packages. Use yum to install the following rpm packages
Httpd,Php, Php-mysql, mysql, mysql-server, mysql-devel, openssl-devel, dovecot, perl-DBD-MySQL, tcl, tcl-devel, libart_lgpl, libart_lgpl-devel, libtool-ltdl, libtool-ltdl-devel
Yum install-y httpd php-mysql-servermysql-devel openssl-devel dovecot perl-DBD-MySQL tcl-devel libart_lgpllibart_lgpl-devel libtool-ltdl-devel
2. Because we use postfix, we 'd better Disable sendmail or even uninstall it.
Service sendmail stop
ChkconfigSendmail off # Do not start
Rpm? E sendmail -- nodeps
3. Install the following components in advance to prevent compilation errors:
Development Libraries
Development TooLs
Legacy Software Development
X Software Development
Yum groupinstall "Development Libraries" "Development Tools" "Legacy Software Development" "XSoftware Development "? Y
4. Start the mysql database and set the password for the root user of mysql:
Service mysqld start
Chkconfig mysqld on
Mysqladmin-u root password 'redhat'
SetPassword forroot @ 'localhost' = password ('redhat ');
Set password for root @ '2014. 0.0.1 '= password ('redhat'); # set the Local password
Grant all privileges on *. * TO root @ '%' identified by 'redhat'; # Set the Remote Login Password
Flush privileges;
Quit
# Start The saslauthd service and add it to the Automatic startup queue:
Servicesaslauthd start
Chkconfig saslauthd on