似乎每次从某个Digitalocean设置发送电子邮件时,发送时间都需要一分钟。例如,设置此文件:
Subject: Terminal Email Send
Email Content line 1
Email Content line 2
然后运行:
time sendmail 'myemail@somewhere.com' < /tmp/emailfile
将发送电子邮件,但需要一分钟-恰好完成命令。每当发送电子邮件时,这都会导致504网关超时错误,例如重置Wordpress密码。
答案 0 :(得分:0)
答案似乎是服务器的/ 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