Centos yum 邮件服务器配置 CentOS release 6.3 (Final)

1.首先要配置MX,我配置完成可以显示如下信息

2.说明配置正常
3.rpm -q dovecot 判断是否已经安装
4.未安装的情况下面安装 rpm -ivh dovecot
5.rpm -q postfix 判断是否已经安装
6.未安装的情况下面安装rpm -ivh postfix
7.cd /etc/postfix 
8.cp main.cf main.cf.bak
9.vi main.cf 放入如下内容,ip请替换成本机真实ip,注解部分也要最后打开,用于saslauthd,最后要打开的
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain localhost $mydomain
mynetworks = 127.0.0.0/8,localhost,ip
relay_domains =
home_mailbox = Maildir/
alias_maps = hash:/etc/aliases
#smtpd_sasl_local_domain =
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#broken_sasl_auth_clients = yes
#smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

10.cd /etc/dovecot 
11 vi dovecot.conf 去掉 protocols = imap pop3 lmtp 前面的#
12 vi /etc/dovecot/conf.d/10-mail.conf  
13 去掉10-mail.conf前面的#  mail_location = maildir:~/Maildir  ##line no 24 - uncomment
14 vi /etc/dovecot/conf.d/10-auth.conf 
auth_username_format = %n
disable_plaintext_auth = no  ##line no 9 - uncomment and change from yes to no.
auth_mechanisms = plain login  ##line no 97 - add the text "login"
15 vi /etc/dovecot/conf.d/10-master.conf 
unix_listener auth-userdb {
    mode = 0660
    user = postfix  ##line no 83 - uncomment and enter postfix
    group = postfix  ##line no 84 - uncomment and enter postfix
16 service dovecot restart
17 最后加密方式,通过如下方式saslauthd 
http://articles.slicehost.com/2009/9/29/centos-postfix-secure-connection-configuring-saslauthd 



转载于:https://my.oschina.net/skyim/blog/220925

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值