本文摘自PHP中文网,作者V,侵删。

1、配置hosts映射

2、安装Postfix与Mailx工具
1 2 3 4 5 | [root@mail ~]# yum -y install postfix mailx
[root@mail ~]# systemctl start postfix
[root@mail ~]# systemctl enable postfix
[root@mail ~]# netstat -anput | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1820/master
|
3、定义Postfix配置文件
1 2 3 4 5 6 | [root@mail ~]# vim /etc/postfix/main.cf
myhostname = mail.mds.com
mydomain = mds.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname , $mydomain
|
阅读剩余部分
相关阅读 >>
CentOS7如何删除php
CentOS7如何查看磁盘空间有多大
解决如何在CentOS7桌面中打开终端
CentOS7下80端口无法访问怎么办
CentOS7下yum命令无法使用怎么解决
CentOS7下怎么用yum安装oracle
CentOS7配置ip地址的两种方法详解
如何在CentOS7在设置ip地址
怎么解决CentOS7忘记root密码的问题
CentOS7下安装不了图形界面怎么办
更多相关阅读请进入《CentOS7》频道 >>
转载请注明出处:木庄网络博客 » centos7怎么使用postfix发送邮件