我在网页上有一个简单的联系表单但是当我点击发送时,处理mailer.php
文件并加载感谢页面大约需要30秒。
我已阅读其他所有网页,他们都建议将IP 127.0.0.1
添加到hosts
文件,在我的情况下已存在。我已经尝试过php的默认mail
函数和phpmailer
库,两者的关闭时间都相同。
以下是maillog
/var/log/maillog
个文件的最后几行
Jul 14 03:11:27 vps11868 spamd[24360]: zoom: able to use 998/999 'body_0' compiled rules (99.899%)
Jul 14 03:11:42 vps11868 spamd[24360]: spamd: server started on IO::Socket::INET [#177_]:783 (running version 3.4.1)
Jul 14 03:11:42 vps11868 spamd[24360]: spamd: server pid: 24360
Jul 14 03:11:42 vps11868 spamd[24360]: spamd: server successfully spawned child process, pid 3444
Jul 14 03:11:42 vps11868 spamd[24360]: spamd: server successfully spawned child process, pid 3445
Jul 14 03:11:42 vps11868 spamd[24360]: prefork: child states: BI
Jul 14 03:11:42 vps11868 spamd[3444]: spamd: connection from localhost [127.0.0.1]:63698 to port 783, fd 5
Jul 14 03:11:42 vps11868 spamd[3444]: spamd: setuid to cpaneleximscanner succeeded
Jul 14 03:11:42 vps11868 spamd[3444]: generic: trusted_networks doesn't contain internal_networks entry '0/0'
Jul 14 03:11:42 vps11868 spamd[3444]: spamd: checking message <269ea2061a4f1afc85252deb13b3371c@bwdmedia.net> for cpaneleximscanner:32011
Jul 14 03:11:46 vps11868 spamd[3444]: spamd: clean message (3.1/5.0) for cpaneleximscanner:32011 in 4.3 seconds, 2022 bytes.
Jul 14 03:11:46 vps11868 spamd[3444]: spamd: result: . 3 - HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MIME_HTML_ONLY,NO_RELAYS,TO_NO_BRKTS_HTML_ONLY,URIBL_BLOCKED scan$
Jul 14 03:11:46 vps11868 spamd[24360]: prefork: child states: II
Jul 14 03:13:48 vps11868 spamd[24360]: prefork: killing failed child 3445 fd=7 at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdFor$
Jul 14 03:13:48 vps11868 spamd[24360]: prefork: killed child 3445
Jul 14 03:13:48 vps11868 spamd[24360]: prefork: killing failed child 3444 fd=6 at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdFor$
Jul 14 03:13:48 vps11868 spamd[24360]: prefork: killed child 3444
Jul 14 03:13:49 vps11868 spamc[3457]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
Jul 14 03:13:51 vps11868 spamd[24360]: zoom: able to use 998/999 'body_0' compiled rules (99.899%)
Jul 14 03:14:06 vps11868 spamd[24360]: spamd: server started on IO::Socket::INET [#177_]:783 (running version 3.4.1)
Jul 14 03:14:06 vps11868 spamd[24360]: spamd: server pid: 24360
Jul 14 03:14:06 vps11868 spamd[24360]: spamd: server successfully spawned child process, pid 3460
Jul 14 03:14:06 vps11868 spamd[24360]: spamd: server successfully spawned child process, pid 3461
Jul 14 03:14:06 vps11868 spamd[24360]: prefork: child states: BI
Jul 14 03:14:06 vps11868 spamd[3460]: spamd: connection from localhost [127.0.0.1]:64104 to port 783, fd 5
Jul 14 03:14:06 vps11868 spamd[24360]: prefork: child states: II
Jul 14 03:14:07 vps11868 dovecot: imap-login: Login: user=<__cpanel__service__auth__imap__prg7lq3thmic88s2cgdxk5s_mgkrpmerbicb_xiadgkfvc...>, method=PLAIN, rip=127.0.0$
Jul 14 03:14:07 vps11868 dovecot: imap(__cpanel__service__auth__imap__prg7lq3thmic88s2cgdxk5s_mgkrpmerbicb_xiadgkfvclvhrvasdqvqwi_pzr9): Logged out in=11, out=434, byt$
Jul 14 03:16:08 vps11868 spamd[24360]: prefork: killing failed child 3460 fd=6 at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdFor$
Jul 14 03:16:08 vps11868 spamd[24360]: prefork: killed child 3460
Jul 14 03:16:08 vps11868 spamd[24360]: prefork: killing failed child 3461 fd=7 at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdFor$
Jul 14 03:16:08 vps11868 spamd[24360]: prefork: killed child 3461
Jul 14 03:16:08 vps11868 spamd[24360]: spamd: handled cleanup of child pid [3461] due to SIGCHLD: interrupted, signal 2 (0002)
Jul 14 03:21:09 vps11868 spamc[3530]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
Jul 14 03:21:12 vps11868 spamd[24360]: zoom: able to use 998/999 'body_0' compiled rules (99.899%)
有助于诊断情况的任何疑难解答提示吗?
答案 0 :(得分:0)
Phpmailer使用gmail的SMTP。所以需要时间,你可以使用google上可以找到的邮件脚本