Postfix appending information I do not want to the header

Posted on 2009-02-18
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.
Question by:k9barry
    LVL 23

    Assisted Solution

    by:Maciej S
    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.

    Author Comment

    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.

    ***** MESSAGE HEADER INFO *****
    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)


    Accepted Solution

    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.
    LVL 23

    Expert Comment

    by:Maciej S
    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.
    LVL 23

    Expert Comment

    by:Maciej S
    "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) :)

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now