2011-11-09 14 views
2

Linuxサーバーでsendmailを構成しようとしています。その結果、電子メールヘッダーにlocalhostが記述されません。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: <[email protected]> 
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 [email protected]) 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 [email protected]) [email protected] 
Received: from mydomain.com (localhost.localdomain [127.0.0.1]) 
    by mydomain.com (...) with ESMTP id xxx 
    for <[email protected]>; Sat, 5 Nov 2011 20:48:44 GMT 
Received: (from [email protected]) 
    by mydomain.com (...) id xxx 
    for [email protected]; Sat, 5 Nov 2011 20:48:44 GMT 
Date: Sat, 5 Nov 2011 20:48:44 GMT 
From: root <[email protected]> 
Message-Id: <XXX> 

を私はlocalhost.localdomainをし、ローカルホストへの参照があるはずはないと思う - ドメインが心配ですがブラックリストに載っ取得など

ことができます誰も私にそれらを削除する方法を教えてください?

ありがとうございます!

答えて

0

はそれはOS /ディストリビューション固有のものです

hostname --fqdn 

以下のコマンドによって報告される完全修飾ホスト名を修正してください。

OR

フォースsendmailを使用CF/READMEファイルで説明したように、別の "このホスト" 名

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

関連する問題