Using Linux + Postfix + Extmail + Dovecot to create a webpage-based email system

Source: Internet
Author: User
Tags dovecot nameserver
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

  1. [Base]
  2. Name = InsTrUctor Server Repository
  3. Baseurl =File: // Media/cdrom/Server
  4. Gpgcheck = 0
  5. [VT]
  6. Name = policuctor VT Repository
  7. Baseurl = file: // media/cdrom/VT
  8. Gpgcheck = 0
  9. [Cluster]
  10. Name = Instructor Cluster Repository
  11. Baseurl = file: // media/cdrom/Cluster
  12. Gpgcheck = 0
  13. [ClusterStorage]
  14. Name = Instructor ClusterStorage Repository
  15. Baseurl = file: // media/cdrom/ClusterStorage
  16. 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

  1. Options {
  2. Directory"/Var/named";
  3. };
  4. Zone"."{
  5. Typehint;
  6. File"Named. ca";
  7. };
  8. Zone"Localhost"{
  9. Typemaster;
  10. File"Localhost. zone";
  11. };
  12. Zone"0.0.127.in-DdR. arpa"{
  13. Typemaster;
  14. File"Named. local";
  15. };
  16. Zone"Dean.com"{
  17. Typemaster;
  18. File"Dean.com. zone";
  19. };
  20. Zone"0.168.192.in-addr. arpa"{
  21. Typemaster;
  22. File& Quot; 192. arpa & quot";
  23. };

3) manually create a forward/reverse dean.com domain File

  1. Cd/var/named
  2. Vim dean.com. zone
  3. $ TTL86400
  4. Dean.com. in soa ns.dean.com. admin.dean.com .(
  5. 2011082301
  6. 1 H
  7. 10 M
  8. 7D
  9. 1D)
  10. NS ns.dean.com.
  11. MX 10 mail.dean.com.
  12. Ns.dean.com. in a 192.168.0.32
  13. Mail.dean.com. in a 192.168.0.32
  14. Vim 192. arpa
  15. $ TTL86400
  16. @ In soa ns.dean.com. admin.dean.com .(
  17. 2011082301
  18. 1 H
  19. 10 M
  20. 7D
  21. 1D)
  22. NS ns.dean.com.
  23. MX 10 mail.dean.com.
  24. 32 in ptr ns.dean.com.
  25. 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

Related Article

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.