Debian 10:sendmail 服务不断停止

Debian 10:sendmail 服务不断停止

每当我启动sendmail服务时,它都会报告

May 01 00:51:43 systemd[1]: Starting LSB: powerful, efficient, and scalable Mail Transport Agent...
May 01 00:51:43 su[6784]: (to smmsp) root on none
May 01 00:51:43 su[6784]: pam_unix(su:session): session opened for user smmsp by (uid=0)
May 01 00:51:43 su[6784]: pam_unix(su:session): session closed for user smmsp
May 01 00:51:43 sm-mta[6807]: starting daemon (8.15.2): SMTP+queueing@00:10:00
May 01 00:51:45 sendmail[6733]: Starting Mail Transport Agent (MTA): sendmail.
May 01 00:51:45 systemd[1]: Started LSB: powerful, efficient, and scalable Mail Transport Agent.

但大约 15-20 秒后我得到了

May 01 00:52:01 systemd[1]: Stopping LSB: powerful, efficient, and scalable Mail Transport Agent...

我以前从未遇到过这种超时,因此我无法使用wp_mail()函数发送电子邮件。在 CLI 中使用 sendmail 可以按预期发送电子邮件 - 但问题主要出在wp_mail()

有没有什么解决方法或方法可以使sendmail“持久”?

systemctl status sendmail输出截图

相关内容