Email-Server

郵件伺服器查找主機名速度慢

  • October 12, 2016

您好,我的郵件伺服器接受 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

我解決了這個問題。

我編輯了一個文件/etc/exim4/exim4.conf.template並修改了這行:

#host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 0s

引用自:https://serverfault.com/questions/808501