Postfix appending information I do not want to the header

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.
Who is Participating?
k9barryAuthor Commented:
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 SsysadminCommented:
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.
k9barryAuthor Commented:
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: via; Thu, 19 Feb 2009 04:16:58 -0800
X-YahooFilteredBulk: 64.34.171.*REMOVED*
X-Originating-IP: [64.34.171.*REMOVED*]
Authentication-Results:; domainkeys=neutral (no sig)
Received: from  (EHLO (
  by with SMTP; Thu, 19 Feb 2009 04:16:58 -0800
X-Originating-IP: []
Received: from ( [64.34.171.*REMOVED*])
      by (8.13.8 inb ipv6 jeff0203/8.13.8) with ESMTP id n1JCGwKE027008
      for <>; Thu, 19 Feb 2009 06:16:58 -0600
Received: by (Postfix, from userid 33)
      id 1C2F3186C05B; Thu, 19 Feb 2009 07:16:58 -0500 (EST)
Subject: Page from Cleaver, James .
From: Page Server <>
Message-Id: <>
Date: Thu, 19 Feb 2009 07:16:58 -0500 (EST)

Maciej SsysadminCommented:
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 SsysadminCommented:
"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) :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.