我正在尝试在Linux服务器上配置sendmail,因此电子邮件标题中未提及localhost。
我在/ etc / sysconfig / network中设置了服务器主机名,并编辑了该行 我的sendmail.cf文件中的Djmydomain.com(并重新启动了所有内容)。
但是电子邮件标题仍然有这个:
Received: by x.x.x.x with SMTP id xxx;
Sat, 5 Nov 2011 13:48:43 -0700 (PDT)
Received: by x.x.x.x with SMTP id xxx;
Sat, 05 Nov 2011 13:48:41 -0700 (PDT)
Return-Path: <root@mydomain.com>
Received: from mydomain.com ([x.x.x.x])
by mx.google.com with ESMTPS id xxx
(version=TLSv1/SSLv3 cipher=OTHER);
Sat, 05 Nov 2011 13:48:41 -0700 (PDT)
Received-SPF: neutral (google.com: x.x.x.x is neither permitted
nor denied by best guess record for domain of root@mydomain.com) client-ip=x.x.x.x;
Authentication-Results: mx.google.com; spf=neutral (google.com: x.x.x.x is neither permitted nor denied by best guess record for domain of root@mydomain.com) smtp.mail=root@mydomain.com
Received: from mydomain.com (localhost.localdomain [127.0.0.1])
by mydomain.com (...) with ESMTP id xxx
for <me@myemailaddress.com>; Sat, 5 Nov 2011 20:48:44 GMT
Received: (from root@localhost)
by mydomain.com (...) id xxx
for me@myemailaddress.com; Sat, 5 Nov 2011 20:48:44 GMT
Date: Sat, 5 Nov 2011 20:48:44 GMT
From: root <root@mydomain.com>
Message-Id: <XXX>
我认为对localhost.localdomain和localhost的引用不应该存在 - 我担心域名被列入黑名单等。
有谁能告诉我如何删除它们?
谢谢!
答案 0 :(得分:0)
修复以下命令报告的完全合格的主机名
hostname --fqdn
特定于操作系统/分发。
或强>
强制sendmail使用另一个“此主机”名称,如cf / README文件中所述