1、配置postfix
1.1 邮件服务器设置静态的主机名
#hostnamectl --static set-hostname mail.scitc.com
1.2 查看主机名
#hostname
1.3 配置简单邮件服务器
@postfix安装 一般都默认安装了
#rpm -q postfix ----检查系统是否安装了postfix
@如果系统没有安装,需要手动安装
#yum -y install postfix
@检查postfix是否支持dovecot代理
#postconf -a
@如果不支持,需要重新安装postfix
1.4 修改Postfix的主配置文件main.cf
#vim /etc/postfix/main.cf
myhostname =mail.scitc.com 邮件服务器主机名 75行
mydomain = scitc.com 服务器所在域 83行
myorigin = $mydomain 设置mail from值 99行
inet_interfaces = all 监听接口 113行
mydestination = &myhostname, localhost. $mydomain,localhost,$mydomain 允许接收邮件的域名 165行
mynetworks = 192.168.1.0/24,127.0.0.0/8 可转发的邮件网络 264行
relay_domains = $mydomain 可转发的邮件域名