您的位置:首页 > 运维架构 > Linux

CentOS 5.2下Postfix的安装

2013-08-02 14:40 381 查看
CentOS下Postfix的安装
[21CTO版权所有]CentOS上安装Postfix在网上资料不算很多,还有一些手册有一些问题。
本文将介绍如何在CentOs下安装Posfix的方法,包括发信检验。1. 使用yum安装。yum install postfix2. 将系统的默认的更改为Postfix。/etc/init.d/sendmail stop
chkconfig –del sendmailalternatives –config mta3. main.cf文件设置
vi /etc/postfix/main.cf# myhostname - 主机名
myhostname = host.example.com# mydomain - 域名
mydomain = example.com# myorigin - 发信人定义
# user@example.com 可以为域名 myorigin = $mydomain
# user@host.example.com 也可以使用主机名(二级域) myorigin = $myhostname
myorigin = $mydomain# inet_interfaces - 设置收信界面
inet_interfaces = all# mydestination - 发信来源定义
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomainmynetworks_style = subnet# mynetworks
mynetworks = 127.0.0.0/8smtpd_banner = $myhostname ESMTP unknown# 邮件保存地址
home_mailbox = Maildir/alias_maps = hash:/etc/aliases// SMTP-Auth设置
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
broken_sasl_auth_clients = yes4. SMTP-Auth设置
vi /usr/lib/sasl2/smtpd.confpwcheck_method: saslauthd
mech_list: plain login5. 系统自动启动设置/etc/init.d/saslauthd start
chkconfig saslauthd on/etc/init.d/postfix start
chkconfig postfix on6. 清理yumyum clean packagesTags: CentOS, postfix
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: