Centos 5.6 to build SendMail mail server

Source: Internet
Author: User
Tags bind gpg modify centos dovecot

Software used: CentOS 5.6 mirror self-with RPM package

Test used domain Name: jh.com

SendMail is a good stability in unix/linux environment of a mail server software, through the configuration of the SendMail server can achieve basic mail forwarding function; Dovecot Server implemented POP3 protocol, can work with SendMail server, Realize the user to collect the function of the mail; Openwebmail is a Web form of mail application system, can realize the user to send, collect and manage the function of the mail. Through the comprehensive management of SendMail, Dovecot and Penwebmail, the system administrator can build a complete and functional mail application system.

This experiment needs:

(1) DNS domain name resolution;

(2) SMTP authentication function;

(3) The configuration of POP3 service;

(4) User alias, and the function of mass mail;

(5) SendMail combined with Apache and openwebmail to realize the function of the Web page to send and receive mail.

A Preparatory work before the experiment

In order to facilitate the installation of related software packages, I first set up a good local Yum source.

We first mount the installation CD:

[Root@mail ~]# Mount

/dev/sda2 on/type ext3 (rw)

Proc On/proc type proc (rw)

Sysfs On/sys type SYSFS (rw)

Devpts on/dev/pts type devpts (rw,gid=5,mode=620)

/DEV/SDA1 on/boot type ext3 (rw)

Tmpfs ON/DEV/SHM type TMPFS (rw)

None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)

Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/DEV/HDC on/media type iso9660 (RO)

1. [Root@mail mail]# CD/ETC/YUM.REPOS.D

2. [Root@mail yum.repos.d]# VI Centos-media.repo

[C5-media]

name=centos-$releasever-media

baseurl=file:///media/

Gpgcheck=1

Enabled=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5

Modify to the above content, save exit!

3. [Root@mail yum.repos.d]# MV Centos-base.repo Centos-base.repo.bak

4. [Root@mail mail]# yum Clean all

Through the simple changes of these steps, the local Yum source is built! Start the following experiment.

Two DNS Environment setup

1. Modify host name before installing DNS

DNS can be either a server alone or a server with SendMail! Here I will install them all on the same server!

You can change the host domain name by modifying the "/etc/hosts" and "/etc/sysconfig/network" two files.

CentOS can be modified through Setup without restarting it!

2. Install DNS

[Root@mail ~]# Rpm-qa |grep bind

Bind-9.3.6-16.p1.el5

Bind-utils-9.3.6-16.p1.el5

Bind-libs-9.3.6-16.p1.el5

Ypbind-1.19-12.el5

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.