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