网站首页 博客 CentOS8.3安装Postfix服务
CentOS8.3安装Postfix服务
 2021-05-20 11:32:18  管理员  81

1.卸载系统自带的邮件服务

查看

# rpm -qa | grep postfix

# rpm -qa | grep sendmail

卸载

# rpm -e `rpm -qa|grep postfix` --nodeps

# rpm -e `rpm -qa|grep sendmail` --nodeps


2.安装postfix服务

# dnf install postfix


3.启用postfix服务

# systemctl start postfix

# systemctl enable postfix


4.查看postfix状态

# systemctl status postfix


5.配置postfix服务

配置文件

/etc/postfix/main.cf

修改以下参数

mynetworks = 127.0.0.1

mydomain = iefeel.com

myorigin = iefeel.com


6.重启postfix服务

# systemctl restart postfix


7.修改php.ini配置

修改以下参数

sendmail_path = /usr/sbin/sendmail -t -i

重启php-fpm


来说两句吧
最新评论