The construction of mail server based on virtual account

Source: Internet
Author: User
Tags yum repolist

Test requirements:

Test instructions: (Need software can be Q395061796)

The server acts as a DNS, mail server role with IP 192.168.100.123.

The client tests

Software Requirements:

First, modify the name of the machine, build DNS and install the required software

[ROOT@ZHANGC ~]# vim/etc/sysconfig/network "Modify host name"

3 hostname=mail.yeah.net

[ROOT@ZHANGC ~]# vim/etc/hosts "Restore Defaults"

3 127.0.0.1 localhost.localdomain localhost

[ROOT@ZHANGC ~]# vim/etc/resolv.conf "Set DNS server address"

2 nameserver 192.168.100.123

[ROOT@ZHANGC ~]# Vim/etc/yum.repos.d/rhel-debuginfo.repo "Edit Yum Warehouse"

[ROOT@ZHANGC ~]# Yum Repolist

[ROOT@ZHANGC etc]# Vim named.conf

[ROOT@ZHANGC etc]# vim named.rfc1912.zones "Add Scope"

Zone "Yeah.net" in {

Type master;

File "Yeah.net.zone";

allow-update {none;};

31};

[ROOT@ZHANGC etc]# CD ... /var/named/

[ROOT@ZHANGC named]# vim Yeah.net.zone "Add and edit zone Files"

[ROOT@ZHANGC named]# service named start

[ROOT@ZHANGC named]# chkconfig named on

[ROOT@ZHANGC named]# service SendMail stop

[ROOT@ZHANGC named]# chkconfig sendmail off

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.