我正在运行 CentOS 5 服务器,该服务器装有 Plesk 10.1.1(64 位)。最近对系统的唯一更改是升级到 Plesk。最近我在发送群发邮件时遇到了很多问题。
当我在简单脚本中使用 php 邮件功能运行测试脚本时,需要 5 秒才能完成(发送一封电子邮件)。
当我使用
strace sendmail -t [email protected] < test.msg
暂停似乎发生在 wait4 命令上。
write(4, "Date: 16 Mar 2011 00:11:57 +0000"..., 190) = 190
close(4) = 0
write(6, "[email protected]"..., 62) = 62
close(6) = 0
wait4(25648, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 25648
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0) = ?
我对服务器的了解相当有限,有人能指出我问题可能出在哪里吗?
邮件标题为
Delivered-To: [email protected]
Received: by 10.204.23.201 with SMTP id s9cs151609bkb;
Tue, 15 Mar 2011 17:08:51 -0700 (PDT)
Received: by 10.216.25.210 with SMTP id z60mr4210560wez.104.1300234130914;
Tue, 15 Mar 2011 17:08:50 -0700 (PDT)
Return-Path: <[email protected]>
Received: from s15321728.onlinehome-server.info (s15321728.onlinehome-server.info [87.106.200.40])
by mx.google.com with ESMTPS id m29si630437wej.135.2011.03.15.17.08.49
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 15 Mar 2011 17:08:49 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 87.106.200.40 as permitted sender) client-ip=87.106.200.40;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [email protected] designates 87.106.200.40 as permitted sender) [email protected]
Received: (qmail 23890 invoked by uid 0); 16 Mar 2011 00:08:42 +0000
Date: 16 Mar 2011 00:08:42 +0000
Message-ID: <[email protected]>
From: [email protected]
/etc/hosts 的内容是
127.0.0.1 s15321728.onlinehome-server.info s15321728 localhost localhost.localdomain
答案1
从 /etc/hosts 中的 127.0.0.1 行中删除主机名 (s15321728.onlinehome-server.info)