Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Postfix appending information I do not want to the header

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

Assisted Solution

by:Maciej S
Maciej S earned 1000 total points
ID: 23679211
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

ID: 23680560
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)


Accepted Solution

k9barry earned 0 total points
ID: 23680784
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
ID: 23680882
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
ID: 23680904
"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

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

564 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