We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Postfix appending information I do not want to the header

k9barry asked
Medium Priority
Last Modified: 2013-11-10
I recently switched my Linux Debian 4.0 server from Sendmail to Postfix.  I use the server to send out an email page to several users cell phones.  When I was using Sendmail the pages would go out normally.  But now I have switched to Postfix I am getting what appears to be a datestamp and some unique ID at the begining of the sent page.  It appears to me that Postfix is appending this information to the page and I need to remove it so the page can be viewed properly.

As mentioned above I need to remove the datestamp and unique id from the email sent.
Watch Question

Maciej Ssysadmin
You mean postfix adds something to email's body? That's strange - you can configure postfix in such way (with additional software), but by default, postfix doesn't do this.
Please provide output of "postconf -n" command, as well as sample email with this datestamp and unique id added. Including full headers of such email.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Attached is the postconf info

The specific problem I am having involved the last two lines of the header information The Message-ID and Date are being added by Postfix and I do not want them.  Since on the email some end users get the body starts out showing the Message-ID and Date then there is not enough room for the actual message.

Hope this helps.

X-Apparently-To: k9barry@ameritech.net via; Thu, 19 Feb 2009 04:16:58 -0800
X-YahooFilteredBulk: 64.34.171.*REMOVED*
X-Originating-IP: [64.34.171.*REMOVED*]
Authentication-Results: mta154.sbc.mail.mud.yahoo.com  from=madisoncountyindiana.us; domainkeys=neutral (no sig)
Received: from  (EHLO nlpi091.prodigy.net) (
  by mta154.sbc.mail.mud.yahoo.com with SMTP; Thu, 19 Feb 2009 04:16:58 -0800
X-Originating-IP: []
Received: from www.madisoncountyindiana.us (www.madisoncountyindiana.us [64.34.171.*REMOVED*])
      by nlpi091.prodigy.net (8.13.8 inb ipv6 jeff0203/8.13.8) with ESMTP id n1JCGwKE027008
      for <k9barry@ameritech.net>; Thu, 19 Feb 2009 06:16:58 -0600
Received: by www.madisoncountyindiana.us (Postfix, from userid 33)
      id 1C2F3186C05B; Thu, 19 Feb 2009 07:16:58 -0500 (EST)
To: k9barry@ameritech.net
Subject: Page from Cleaver, James .
From: Page Server <pageserve@madisoncountyindiana.us>
Message-Id: <20090219121658.1C2F3186C05B@www.madisoncountyindiana.us>
Date: Thu, 19 Feb 2009 07:16:58 -0500 (EST)

I located the source of the problem - in part to oklit's confirmation that Postfix does not automatically add information to the header.  

To be more specific I located a carriage return in the section of my program that creates the header information for the message.  This carriage return caused the remaining header info to be placed into the body.  Postfix was working exactly as it should.
Maciej Ssysadmin

What software are you using to send these emails? It should generate message-id and date headers itself. Postfix checks if there is Message-ID header - if not, it adds its own Message-ID (as every email has to have such header). The same for Date header.
Anyway - email client's should be able to handle such emails - I would rather look for some bugs in them.

Both these headers - Message-ID and Date, in provided sample, are added by postfix, so you can't remove them (you can try, but if they are removed, postfix will add them again :)).

The only way you can 'fix' this is to generate your emails and add these headers into them while they are generated. Probably headers added in sending software won't be as the last ones, but somewhere in the middle of other headers. This should solve your problem.
Maciej Ssysadmin

"in part to oklit's confirmation that Postfix does not automatically add information to the header."
I wrote that postfix is not adding by default anything to email's _body_. It is adding some headers in few cases (one of them I mentioned in my previous post) :)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.