您好,我的邮件服务器接受 SMTP 连接的速度非常慢。
我找到了一个教程,可以在我的 Exim4 中停止并运行下面的命令来查看它运行到哪里。
exim -bd -d -oX 587
沿着出口走,哪里停机时间更多。你能帮我弄清楚为什么这么慢吗?
29136 Connection request from 187.23.45.188 port 61995
29136 search_tidyup called
29136 1 SMTP accept process running
29136 Listening...
29141 sender_fullhost = [187.23.45.188]
29141 sender_rcvhost = [187.23.45.188]
29141 Process 29141 is handling incoming connection from [187.23.45.188]
29141 host in host_lookup? yes (matched "*")
29141 looking up host name for 187.23.45.188 -----> VERY SLOW HERE
答案1
我解决了这个问题。
我编辑了一个文件/etc/exim4/exim4.conf.template
并修改了以下几行:
#host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 0s