Exim 邮件服务器通过 SMTP 发送速度很慢

Exim 邮件服务器通过 SMTP 发送速度很慢

服务器大约需要 30 秒才能向我发送横幅,但初始连接是立即完成的

只在我办公室时发生,在家时一切正常

在办公室我为我的客户端 IP 设置了一个 rRns,但它不起作用。

服务器:Exim,公共固定 IP,rDNS,无端口阻塞,位于数据中心


配置:

hostlist loopback = <; 127.0.0.0/8 ; 0.0.0.0 ; ::1 ; 0000:0000:0000:0000:0000:ffff:7f00:0000/8
hostlist senderverifybypass_hosts = net-iplsearch;/etc/senderverifybypasshosts
hostlist skipsmtpcheck_hosts = net-iplsearch;/etc/skipsmtpcheckhosts
hostlist spammeripblocks = net-iplsearch;/etc/spammeripblocks
hostlist backupmx_hosts = lsearch;/etc/backupmxhosts
hostlist trustedmailhosts = lsearch;/etc/trustedmailhosts
domainlist user_domains = ${if exists{/etc/userdomains} {lsearch;/etc/userdomains} fail}

这在服务器上发生得非常快:

30132 ident connection to 89.238.207.49 failed: Connection refused
30132 sender_fullhost = [89.238.207.49]
30132 sender_rcvhost = [89.238.207.49]
30132 Process 30132 is handling incoming connection from [89.238.207.49]    
30132 host in host_lookup? no (option unset)
30132 set_process_info: 30132 handling incoming connection from [89.238.207.49]
30132 host in host_reject_connection? no (option unset)
30132 host in sender_unqualified_hosts? no (option unset)
30132 host in recipient_unqualified_hosts? no (option unset)
30132 host in helo_verify_hosts? no (option unset)
30132 host in helo_try_verify_hosts? no (option unset)
30132 host in helo_accept_junk_hosts? yes (matched "*")
30132 using ACL "acl_connect"
30132 processing "accept"
30132 check hosts = +trustedmailhosts
30132 sender host name required, to match against lsearch;/etc/trustedmailhosts
30132 looking up host name for 89.238.207.49
30132 IP address lookup yielded relay.easycomm.ro

客户端

2011.09.14 13:08:13 SMTP (mail.server.ro): Begin execution
2011.09.14 13:08:13 SMTP (mail.server.ro): Port: 465, Secure: SSL, SPA: no
2011.09.14 13:08:13 SMTP (mail.server.ro): Finding host
2011.09.14 13:08:13 SMTP (mail.server.ro): Connecting to host
2011.09.14 13:08:13 SMTP (mail.server.ro): Securing connection
2011.09.14 13:08:13 SMTP (mail.server.ro): Connected to host
---> This is a 1 minute 5 seconds gap
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 220-genius.filipnet.ro ESMTP Exim     4.69 #1 Wed, 14 Sep 2011 13:09:26 +0300 
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 220-We do not authorize the use of     this system to transport unsolicited, 
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 220 and/or bulk e-mail.
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] EHLO CatalinDell
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250-genius.filipnet.ro Hello     CatalinDell [89.238.207.49]
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250-SIZE 52428800
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250-PIPELINING
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250-AUTH PLAIN LOGIN
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250 HELP
2011.09.14 13:09:18 SMTP (mail.server.ro): Authorizing to server
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] AUTH LOGIN
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 334 VXNlcm5hbWU6
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] dGVzdEBzcG9ydGd1cnUucm8=
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 334 UGFzc3dvcmQ6
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] *****
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 235 Authentication succeeded
2011.09.14 13:09:18 SMTP (mail.server.ro): Authorized to host
2011.09.14 13:09:18 SMTP (mail.server.ro): Connected to host
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] MAIL FROM: <*****>
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250 OK
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] RCPT TO: <*****>
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 250 Accepted
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] DATA
2011.09.14 13:09:18 SMTP (mail.server.ro): <rx> 354 Enter message, ending with "."     on a line by itself
2011.09.14 13:09:18 SMTP (mail.server.ro): [tx] .
---> This is a 1 minute 10 seconds gap
2011.09.14 13:10:28 SMTP (mail.server.ro): <rx> 250 OK id=1R3mPG-0004T4-7Q
2011.09.14 13:10:28 SMTP (mail.server.ro): End execution

--- 初始信息

我在 Windows 7 自带的“Windows Live Mail”上设置了一个电子邮件帐户

接收速度超快,但由于某种原因,发送速度非常慢,我不得不将发送超时时间增加到 3 分钟才能使其正常工作。

服务器软件是 Exim / Dovecot / cPanel。

您知道为什么发送过程如此缓慢吗?

谢谢你!

答案1

如果看不到您的 Exim 配置,就无法确定,但是日志的第一行:

30132 ident connection to 89.238.207.49 failed: Connection refused

表明你的问题是一个典型的身份查找延迟。Exim FAQ 中记录了此问题:

Exim ident 调用

Exim SMTP 延迟

以及第十四章Exim 文档。ident 查询延迟的默认值为 5 秒,但在旧版本的 Exim 中该值为 30 秒。

检查配置选项,如有必要,将其设置为零,以禁用呼叫。

rfc1413_query_timeout = 0s

相关内容