我在CentOS 7上,据我所知,Postfix在重新启动时所需要的就是运行systemctl enable postfix.service
但是,这不适合我。 重新启动后, systemctl status postfix产生以下内容:
postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled) Active: inactive (dead)
在错误日志中没有logging错误,Postfix启动时工作正常,当我手动执行。 任何想法我做错了什么?
编辑:输出从cat /etc/systemd/system/multi-user.target.wants/postfix.service
[Unit] Description=Postfix Mail Transport Agent After=syslog.target network.target Conflicts=sendmail.service exim.service [Service] Type=forking PIDFile=/var/spool/postfix/pid/master.pid EnvironmentFile=-/etc/sysconfig/network ExecStartPre=-/usr/libexec/postfix/aliasesdb ExecStartPre=-/usr/libexec/postfix/chroot-update ExecStart=/usr/sbin/postfix start ExecReload=/usr/sbin/postfix reload ExecStop=/usr/sbin/postfix stop [Install] WantedBy=multi-user.target
费德里科,非常感谢你的帮助。 我检查了/ var / log / messages,看到在手动启动时,先closuressendmail,然后启动postfix。 我想在重启时可能会有某种sendmail / postfix冲突,所以我做了yum remove sendmail ,现在都好了!