Build postfix mailbox Service in Linux

Source: Internet
Author: User
Tags dovecot

Introduction

Postfix is an MTA (mail transfer agent) software developed by Wietse Venema under the GPL agreement of IBM. Postfix is an attempt by Wietse Venema to provide alternatives to the most widely used sendmail. In the Internet world, most e-mails are delivered via SendMail, and about 1 million users use SendMail to deliver billions of emails a day. This is really a surprising number. Postfix tries to be faster, easier to manage and more secure, while still maintaining sufficient compatibility with sendmail.

Environment

redhat6.5

ip:192.168.10.100

Steps

First, confirm the installation postfix. Dns.

# rpm-ivh/sr0/packages/bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm #安装DNS
# Rpm-qa | grep postfix #确认以安装postfix



Two, DNS basic configuration.

First Modify:

# vim/etc/named.conf #改成监听any


# vim/etc/named.rfc1912.zones #正向查询区域, Add five elements

Zone "Zred.com" in {
Type master;
File "Zred.com.zone";
allow-update {none;};
};

# cp-a Named.localhost Mail.zred.com.zone #保留原有权限等复制

# vim Mail.zred.com.zone #编辑该文件
Change as follows

# echo "NameServer 192.168.10.100" >/etc/resolv.conf #添加主机地址到配置文件

Start the service and try to resolve

Three, Postfix basic configuration.

# VIM/ETC/POSTFIX/MAIN.CF #主配置文件, the following items need to be modified.

Remove comment Add a native address and loopback address

Remove Comment to host name

Add host Name

Remove annotations

Remove annotations

Modify recipient address mail domain

mydestination = $mydomain, $myhostname

Restart Postfix Service

# service Postfix Restart

-------------Dovecot----------------

Installing Dovecot

#rpm-ivh/sr0/packages/dovecot-2.0.9-7.el6.x86_64.rpm

Edit its configuration file

#vi/etc/dovecot/dovecot.conf

Specify the network segment of the server

Open protocol

#vi/etc/dovecot/conf.d/10-mail.conf

Open mailbox Location and format

Open service

#service Dovecot Start

Test

Add two user mailboxes to test a user

Tests can send messages.

Accept:

Report:

Here use the local address login mailbox, if you need to log on with other machines, only need to change the postfix in the main configuration file of the listening address is 0.0.0.0.

Build postfix mailbox Service in Linux

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.