为什么sendmail需要一分钟-导致504网关超时

似乎每次从某个Digitalocean设置发送电子邮件时,发送时间都需要一分钟。例如,设置此文件:

Subject: Terminal Email Send

Email Content line 1
Email Content line 2

然后运行:

time sendmail 'myemail@somewhere.com' < /tmp/emailfile

将发送电子邮件,但需要一分钟-恰好完成命令。每当发送电子邮件时,这都会导致504网关超时错误,例如重置Wordpress密码。

huzhanyuan09 回答:为什么sendmail需要一分钟-导致504网关超时

答案似乎是服务器的/ etc / hosts中的另一行:

127.0.0.1 localhost.localdomain localhost hostname-of-the-server

https://www.digitalocean.com/community/questions/sendmail-is-slow-to-send-mail

本文链接:https://www.f2er.com/3087233.html

大家都在问