|
发表于 2016-5-3 22:54:24
|
显示全部楼层
配置postfix 主配置文件
[root@mail ~]# vi /etc/postfix/main.cf
myhostname = mail.vqiu.cn
mydomain = vqiu.cn
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8
home_mailbox = Maildir/ <===启用Maildir模式存储,默认是Mbox
#################### SMTP SASL CONFIG ######################
smtpd_sasl_type = dovecot <===sasl的验证方法采用dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_destination
message_size_limit = 15728640 <===邮件传送上限15M
配置dovecot
[root@mail ~]# yum -y install dovecot
[root@mail ~]# vi /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no <==允许明文验证
auth_mechanisms = plain login <==dovecot 验证机制
[root@mail ~]# vi /etc/dovecot/dovecot.conf
protocols = imap pop3
listen = * <==只启用ipv4
[root@mail ~]# vi /etc/dovecot/10-mail.conf
mail_location = maildir:~/Maildir
[root@mail ~]# vi /etc/dovecot/conf.d/10-master.conf
#unix_listener auth-userdb {
#mode = 0600
#user =
#group =
#}
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth { <==要与main.cf 中smtpd_sasl_path = private/auth一致
mode = 0666
user = postfix
group = postfix
}
[root@mail ~]# vi /etc/dovecot/conf.d/20-pop3.conf
# uncomment on these line:
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh <==兼容outlook,outlook Express |
|