解决发送邮件时出现由www@localhost.localdomain代发的方法

今天测试Discuz程序的邮件注册功能时发现接收邮箱中的收件人处出现“由www@localhost.localdomain代发”的问题,下面提供一个解决方法:直接在终端处输入以下命令即可

hostname yourname.com
[root@localhost docker]# sudo journalctl -u docker.service --no-pager -n 50 -- Logs begin at 六 2025-07-26 11:02:17 CST, end at 二 2025-07-29 17:51:36 CST. -- 7月 29 17:47:23 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 7月 29 17:47:23 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:47:23 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:47:23 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:47:25 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart. 7月 29 17:47:25 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine. 7月 29 17:47:25 localhost.localdomain systemd[1]: Starting Docker Application Container Engine... 7月 29 17:47:25 localhost.localdomain dockerd[12096]: time="2025-07-29T17:47:25.651602526+08:00" level=info msg="Starting up" 7月 29 17:47:25 localhost.localdomain dockerd[12096]: failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd 7月 29 17:47:25 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 7月 29 17:47:25 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:47:25 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:47:25 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:47:27 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart. 7月 29 17:47:27 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine. 7月 29 17:47:27 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service 7月 29 17:47:27 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:47:27 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:47:27 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:48:28 localhost.localdomain systemd[1]: Starting Docker Application Container Engine... 7月 29 17:48:28 localhost.localdomain dockerd[12126]: time="2025-07-29T17:48:28.284201609+08:00" level=info msg="Starting up" 7月 29 17:48:28 localhost.localdomain dockerd[12126]: failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd 7月 29 17:48:28 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 7月 29 17:48:28 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:48:28 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:48:28 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:48:30 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart. 7月 29 17:48:30 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine. 7月 29 17:48:30 localhost.localdomain systemd[1]: Starting Docker Application Container Engine... 7月 29 17:48:30 localhost.localdomain dockerd[12136]: time="2025-07-29T17:48:30.407891965+08:00" level=info msg="Starting up" 7月 29 17:48:30 localhost.localdomain dockerd[12136]: failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd 7月 29 17:48:30 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 7月 29 17:48:30 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:48:30 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:48:30 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:48:32 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart. 7月 29 17:48:32 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine. 7月 29 17:48:32 localhost.localdomain systemd[1]: Starting Docker Application Container Engine... 7月 29 17:48:32 localhost.localdomain dockerd[12146]: time="2025-07-29T17:48:32.649503397+08:00" level=info msg="Starting up" 7月 29 17:48:32 localhost.localdomain dockerd[12146]: failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd 7月 29 17:48:32 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE 7月 29 17:48:32 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:48:32 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:48:32 localhost.localdomain systemd[1]: docker.service failed. 7月 29 17:48:34 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart. 7月 29 17:48:34 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine. 7月 29 17:48:34 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service 7月 29 17:48:34 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine. 7月 29 17:48:34 localhost.localdomain systemd[1]: Unit docker.service entered failed state. 7月 29 17:48:34 localhost.localdomain systemd[1]: docker.service failed.
最新发布
07-30
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值