之前写过一篇文章介绍了
https://securityer.lofter.com/post/1d0f3ee7_8b5be67
有时因为系统环境的不同,配置过程可能不是那么顺利,如下
# vim /etc/aliases //设置root转发
# newaliases //刷新数据库
newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
抓取错,提示刷新失败
解决方法
编程文件vim /etc/postfix/main.cf,注释掉 inet_interfaces部分,如下:
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#inet_interfaces = localhost
保存后查看postfix服务的状态,systemctl status postfix,发现是failed状态,于是重启该服务
# systemctl restart postfix
重启后postfix为active状态,此时再次刷新数据库成功
# newaliases
© 走过岁月...... | Powered by LOFTER