【问题标题】:How to configure sendmail and avoid localhost.localdomain?如何配置 sendmail 并避免 localhost.localdomain?
【发布时间】:2012-07-30 17:55:12
【问题描述】:

我已被添加到 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 但它没有用...

【问题讨论】:

    标签: sendmail


    【解决方案1】:

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

    我唯一要做的就是添加

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

    /etc/mail/sendmail.mc 
    

    然后

    make -C /etc/mail/
    

    【讨论】:

    • 我认为您需要在 define 之前省略 dnl 才能使其正常工作。
    • 至少在那个时候是有效的……不知道现在情况是否完全不同……
    猜你喜欢
    • 2012-05-08
    • 2016-12-10
    • 1970-01-01
    • 2023-03-07
    • 2023-04-03
    • 1970-01-01
    • 2012-02-17
    • 2022-10-24
    • 2013-11-25
    相关资源
    最近更新 更多