【邮件服务器的本地域配置】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 =m y h o s t n a m e , l o c a l h o s t . myhostname, localhost. myhostname,localhost.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
文章图片