centos 6.4 x64 postfix 邮件系统 和 dovecot pop3的设置

作者:袖梨 2022-06-30

首先MX解析
A记录 mxdomain 188.188.188.188
MX @ mxdomain.xxx.com
//postfix 2.6.6
yum install postfix

vi /etc/postfix/main.cf

myhostname = mxdomain.xxx.com
mydomain = xxx.com
myorigin = $mydomain //@后面的域名 。
inet_interfaces = all //接受来自所有网络的请求
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
relay_domains = $mydestination
mynetworks = 168.100.189.0/28, 127.0.0.0/8
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP unknow
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
message_size_limit = 15728640

mkdir /etc/skel/Maildir
chmod 700 /etc/skel/Maildir

//dovecot 2.0.9

auth_mechanisms = plain login // conf.d/10-auth.conf
login_trusted_networks = 0.0.0.0/0
mail_location = maildir:~/Maildir // conf.d/10-mail.conf
mbox_write_locks = fcntl
passdb {
driver = pam
}
service auth { // conf.d/10-master.conf
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
ssl = no
ssl_cert = ssl_key = userdb {
driver = passwd
}

相关文章

精彩推荐