Link to home
Start Free TrialLog in
Avatar of k9barry
k9barryFlag for United States of America

asked on

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.
SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of k9barry

ASKER

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: k9barry@ameritech.net via 68.142.201.110; 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 207.115.36.107  (EHLO nlpi091.prodigy.net) (207.115.36.107)
  by mta154.sbc.mail.mud.yahoo.com with SMTP; Thu, 19 Feb 2009 04:16:58 -0800
X-Originating-IP: [64.34.171.172]
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)




postconf--n.txt.txt
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
"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) :)