1、搭建时间服务器,客户端可在每天早晨的9:00整从ntp服务器更新自己的时间。 2、搭建邮件服务器,使用wukong@ceshi.com给wuneng@ceshi.com用户发一封邮件,内容为biechile。
一、
1、服务器端
安装chrony安装包
编辑etc/chrony.conf文件
重启
列出当前我们的NTP与相关的上层NTP的状态
客户端
安装chrony软件包
使用计划任务,自动更新时间
编辑 etc/crontab
二、
关闭防火墙
编辑etc/postfix/main.cf
重启postfix
systemctl restart postfix
安装dovecot软件包
yum install dovecot -y
编辑etc/dovecot/dovecot.conf
编辑/etc/dovecot/conf.d/10-mail.conf
开启sasl认证,安装软件包
yum install cyrus-sasl* -y
编辑 vim /etc/postfix/main.cf
末尾追加
broken_sasl_auth_clients = yes启用sasl对客户端进行认证
smtpd_sasl_auth_enable = yes启用sasl认证
smtpd_sasl_security_options = noanonymous禁用匿名用户
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination定义收件人限定
重启相关服务
创建用户
使用foxmail收发邮件