build postfix mail server in Linux redhat6.5

Source: Internet
Author: User
Tags dovecot

Postfix is an e-mail server that was developed by the IBM Watson Research Center (T.J. Wietse Venema, a Dutch researcher at Watson Research Center, was created to improve the SendMail mail server. First appeared in the late 1990, is an open source software.
The experiment requires:
package postfix (send transfer message), Dovecot (Accept mail) bind (DNS resolution)
Experimental objectives:
Enable Zhangsan Lisi account through postfix to send emails to each other

 1:安装DNS   编辑named.conf


2: Edit Named.rfc1912.zones

3: Copy named.localhost named Benet.com.zone
Edit Benet.com.zone

4:编辑/etc/postfix/main.cf  (系统一般自带  如果没有使用rpm 安装)          inet_interfaces = all                          //监听服务的IP地址//        #inet_interfaces = localhost                      加#注释    myhostname = mail.benet.com                    //邮件服务器主机名//    mydomain = benet.com                           //邮件域名//    myorigin = $mydomain                           //发件人地址邮件域名//    mydestination = $mydomain, $myhostname         //收件人地址邮件域名//    home_mailbox = Maildir/                        //邮件存放位置//  

Process=image/watermark,size_16,text_qduxq1rp5y2a5a6i,color_ffffff,t_100,g_se,x_10,y_10,shadow_90,type_ zmfuz3pozw5nagvpdgk= "alt=" Linux redhat6.5 build postfix mail Server "/>

5:重启postfix 服务    安装dovecot软件包(接收邮件)


6: Edit Dovecot. conf

    protocols = imap pop3 lmtp   //开启协议//    login_trusted_networks = 192.168.100.0/24  //指定服务器所在网段//

7:编辑/etc/dovecot/conf.d/10-mail.conf        mail_location = maildir:~/Maildir //开启邮箱的位置及格式//  (去掉#号)        重启dovecot服务


8: Create a group mailusers
Create Accounts Zhangsan, Lisi and join the Mailusers group
Set the password for Zhangsan, Lisi

    9:测试下postfix邮件发送(用zhangsan 给lisi 发送邮件)    telnet 192.168.100.101 25    helo mail.benet.com    mail from:[email protected]    rcpt to:[email protected]    data    subject:hello lisi    my name is zhangsan

10:测试postfix邮件接收(登录lisi 查看zhangsan 发送的邮件)    telnet143  端口结束:OVER    telnet mail.benet.com 110    user lisi    pass 123456    list    retr 1    quit

11:去windows7中测试 准备2台 windows7     一台登录zhangsan   一台登录lisi 下载Foxmail安装包  安装 >手动设置  配置你的账户密码 和服务器IP 登录zhangsan 和lisi  帐号 进行测试

build postfix mail server in Linux redhat6.5

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.