Build a virtual user-based email server under Red Hat Enterprise Linux5.4

Source: Internet
Author: User
I. Preparations before installation and description of the required source code package: Ghost (the source code package is from the Internet, you can download it if necessary) linux Operating Platform Enterprise 5.4, IP address 192.168.101.222, the domain name is abc. com1,

I. Preparations and instructions before installation

Required source code package: Ghost (the source code package is from the Internet. You can download it if necessary)

Linux Operating Platform Enterprise 5.4, IP address 192.168.101.222, domain name: abc.com

1. Set up a DNS server:

[Root @ Eleven ~] # Mkdir/mnt/cdrom

[Root @ Eleven ~] # Mount/dev/cdrom/mnt/cdrom/

Mount: block device/dev/cdrom is write-protected, mounting read-only

Edit yum

[Root @ Eleven ~] # Vim/etc/yum. repos. d/rhel-debuginfo.repo

[Root @ Eleven ~] # Cd/mnt/cdrom/Server/

[Root @ Eleven Server] # yum install bind-chroot caching-nameserver-y

[Root @ Eleven Server] # cd/var/named/chroot/etc/

[Root @ Eleven etc] # cp-p named. caching-nameserver.conf named. conf

[Root @ Eleven etc] # vim named. conf

(Red indicates the modified content)

Modify the region declaration File

[Root @ Eleven etc] # vim named. rfc1912.zones

Generate Database

[Root @ Eleven etc] # cd ../var/named/

[Root @ Eleven named] # cp-p localhost. zone abc.com. db

[Root @ Eleven named] # vim abc.com. db

Modify to the following content:

Modify vim/etc/resolv. conf

Modify host name:

Vim/etc/sysconfig/network

Restart system: init 6

[Root @ mail ~] # Service named start

Starting named: [OK]

[Root @ mail ~] # Chkconfig named on

DNS Installation Complete

2. Install the required rpm package, which includes the following:

[Root @ mail ~] # Mount/dev/cdrom/mnt/cdrom/

Mount: block device/dev/cdrom is write-protected, mounting read-only

[Root @ mail ~] # Yum install-y httpd mysql-server mysql-devel openssl-devel dovecot perl-DBD-MySQL tcl-devel libart_lgpl libart_lgpl-devel libtool-ltdl-devel skip CT

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

[Root @ mail ~] # Service sendmail stop

[Root @ mail ~] # Chkconfig sendmail off

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

Development Libraries

Development Tools

Legacy Software Development

X Software Development

Run the command yum grouplist to view the information. If no command is available, run the command yum groupinstall "packge_group_name"

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

[Root @ mail ~] # Service mysqld start

[Root @ mail ~] # Chkconfig mysqld on

Set the new password to "RedHat". Because there is no old password, press Enter when you need to enter the old password.

[Root @ mail ~] # Mysqladmin-u root password 'redhat'

Yes.

--------------------------------- Authorize a local user

Set password for root @ 'localhost' = PASSWORD ('redhat ');

Set password for root @ '2014. 0.0.1 '= PASSWORD ('redhat ');

Flush privileges; # Make the modification take effect

------------------------------- Authorize a remote user

Grant all privileges on *. * TO root @ '%' identified by 'redhat ';

Flush privileges;

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.