gpt4 book ai didi

email - 阻止本地主机出现在电子邮件标题中

转载 作者:行者123 更新时间:2023-12-02 05:08:46 25 4
gpt4 key购买 nike

我正在尝试在Linux服务器上配置sendmail,以便在电子邮件标题中未提及localhost。

我已经在/ etc / sysconfig / network中设置了服务器主机名,并编辑了该行
我的sendmail.cf文件中的Djmydomain.com(并重新启动了所有内容)。

但是,电子邮件 header 仍然具有以下内容:

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的引用不应该存在-担心该域被列入黑名单等。

谁能告诉我如何删除它们?

谢谢!

最佳答案

修复以下命令报告的完全合格的主机名

hostname --fqdn

它是特定于OS /发行版的。



如cf / README文件中所述,强制sendmail使用另一个“此主机”名称

https://www.sendmail.com/sm/open_source/docs/m4/whoami.html

关于email - 阻止本地主机出现在电子邮件标题中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8071733/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com