-1

I use Postfix as SMTP Server and I don't want my server hostname to appear in the email header, what changes should I do?

As you can see in the code bellow, here is the hostname: server1.example.com

Here is the full header:

Received: from server1.example.com (example.com [My Ip(111.11.111.11)])
Delivered-To: [email protected]
Received: by 10.150.95.9 with SMTP id s9cs39975ybb;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Received: by 10.142.128.14 with SMTP id a14mr6566111wfd.384.1286903051027;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Return-Path: <[email protected]>
Received: from server1.example.com (example.com [My Ip(111.11.111.11)])
        by mx.google.com with ESMTP id y15si19129610wfd.52.2010.10.12.10.04.10;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 111.11.111.11 as permitted sender) client-ip=111.11.111.11;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 111.11.111.11 as permitted sender) [email protected]
Received: by server1.example.com (Postfix, from userid 2523)
 id D33A612980A1; Tue, 12 Oct 2010 17:04:09 +0000 (UTC)
subject: Hello
Message-Id: <[email protected]>
Date: Tue, 12 Oct 2010 10:03:49 -0700 (PDT)
From: [email protected]
To: undisclosed-recipients:;
1
  • 2
    did you check the myhostname variable in your main.cf set the way you want it to show? Also it is possible that the google mail server is doing a reverse lookup of your IP and the response is the hostname that you do not want.
    – PHGamer
    Oct 13, 2010 at 3:23

2 Answers 2

1

You could change the helo_name setting but, as noted by DandyPandy, receiving SMTP servers will still reverse look-up your MTA's IP address and make note of it.

http://www.manpagez.com/man/5/postconf/

0

You can't help that. All you can do is configure your server to advertise another name. Sometimes, please use white-label domains that give no clear indication of who they're coming from. That's the standard though and that part of the header is being put there by the receiving server (gmail).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .