我有一台WHM服务器 - 上面有几个发送电子邮件的PHP脚本。它过去一直工作到最近。现在,似乎已停止从这些脚本发送电子邮件。
鉴于我知道脚本本身没有问题,我将如何调试他们不再被发送的原因?
这是我目前所知道的:
有什么想法吗?
WHM 60 Build 35,CentOS 6
答案 0 :(得分:0)
请尝试按照以下说明操作,以帮助您解决电子邮件问题:
1) - check if you server has a valid hostname like host.domain.tld and that hostname actually points to the server's ip address
2) - check if you have rDNS setup correctly for your server's ip address and the reverse DNS should match the hostname
3) - Use Mail Queue Manager from WHM (in the left search in WHM got o Email -> Mail Queue Manager) and see if there are any emails in the mail queue there
4) - Use Mail Troubleshooter from WHM ( Email -> Mail Troubleshooter) and see what happens when you try to send an email to a gmail address
5) - You could check the Exim server logs by logging in via ssh and do a tail -f /var/log/exim_mainlog
很可能您的电子邮件位于服务器的邮件队列中,由于某种原因,它们未送达