gpt4 book ai didi

sendmail - 如何配置sendmail并避免localhost.localdomain?

转载 作者:行者123 更新时间:2023-12-02 20:11:20 24 4
gpt4 key购买 nike

我已被添加到 CBL 列表中,因为我们的 Fedora 17 服务器(我们已对其进行了更新)现在正在发送将自身标识为 localhost.localdomain 的邮件。

我已从一台装有 fedora 17 的服务器运行此命令

echo“这将进入邮件正文。” | sendmail -s "Hello world"abraham.sustaita@gmail.com

这是邮件中的内容:

Received: from app03.site.com (localhost.localdomain [127.0.0.1])
by app03.site.com (8.14.5/8.14.5) with ESMTP id q6UHk0xp018117;
Mon, 30 Jul 2012 17:46:00 GMT

但是从其他带有 fedora 12 的服务器,相同的命令发送邮件如下:

Received: by app05.site.com (Postfix, from userid 0)
id 2DFFF24E67E; Mon, 30 Jul 2012 17:46:38 +0000 (UTC)

如何配置 sendmail,使其不发送 localhost.localdomain?我已遵循此指南:http://www.redhat.com/magazine/025nov06/features/email/index.html但没有成功...

最佳答案

我已经能够解决这个问题了。

我唯一要做的就是添加

dnl define(`confDOMAIN_NAME', `app05.site.com')dnl

/etc/mail/sendmail.mc 

然后

make -C /etc/mail/

关于sendmail - 如何配置sendmail并避免localhost.localdomain?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11726912/

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