Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:

Here is the full header:

Received: from ( [My Ip(])
Received: by with SMTP id s9cs39975ybb;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Received: by with SMTP id a14mr6566111wfd.384.1286903051027;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Return-Path: <>
Received: from ( [My Ip(])
        by with ESMTP id y15si19129610wfd.52.2010.;
        Tue, 12 Oct 2010 10:04:11 -0700 (PDT)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( domain of designates as permitted sender)
Received: by (Postfix, from userid 2523)
 id D33A612980A1; Tue, 12 Oct 2010 17:04:09 +0000 (UTC)
subject: Hello
Message-Id: <>
Date: Tue, 12 Oct 2010 10:03:49 -0700 (PDT)
To: undisclosed-recipients:;
share|improve this question
did you check the myhostname variable in your 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 '10 at 3:23

2 Answers 2

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.

share|improve this answer

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).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.