1.配置POSTFIX //邮件发送服务
1.vim /etc/postfix/main.cf //主配置文件
75 myhostname = mail.baidu.com
83 mydomain = baidu.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
165 mydestination =
mydomain, localhost, $mydomain
264 mynetworks = 192.168.10.0/24
296 relay_domains = $mydestination
2 .配置dovecot //邮件接受服务
1.vim /etc/dovecot/dovecot.conf //主配置文件
24 protocols = imap pop3 lmtp
48 login_trusted_networks =192.168.10.0/24
2.vim /etc/dovecot/conf.d/10-mail.conf //子配置文件
25 mail_location = mbox:~/mail:INBOX=/var/mail/%u
3.创建用户,修改权限,重启服务
529 useradd xiaolei -s /usr/bin/bash
530 useradd xiaopeng -s /usr/bin/bash
531 echo redhat | passwd --stdin xiaolei
532 echo redhat | passwd --stdin xiaopeng
533 systemctl restart postfix
534 systemctl restart dovecot
邮件服务器的本地域配置
猜你喜欢
转载自blog.csdn.net/qq_39396529/article/details/84455109
今日推荐
周排行