Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed posfix and my web app is now successfully sending mails.

However, the mails have the following text at the start of each mail:

Content-type: text/html; charset=iso-8859-1 From: Application Message-Id: Date: Thu, 10 Sep 2009 09:36:28 +0000 (UTC)

Is this a configuration problem and if so does anyone know how I can resolve it?

Regards, Fiona

share|improve this question
up vote 1 down vote accepted

That's a problem with your web app, most likely. What happens if you try to send email from the command line (either using the simple "Mail" client or just by telnetting to port 25 and issuing SMTP commands). If they don't have this weird header (and I'm pretty sure they won't), then postfix is fine, and you need to figure out what's wrong with your web app.

share|improve this answer
Hi Paul, You were right.. just sent a mail from the command line.. and it doesn't have the weird header.. will contact my developers. (They told me it was an issue with the installation!) Many thanks for your help Fiona – Fiona Sep 10 '09 at 11:27
Fiona, the standard way to say thanks on this site is via upvotes or by accepting the answer, or both. – Paul Tomblin Sep 10 '09 at 11:55
Ok.. I've been informed that the reason issuing a mail from the command line works fine is because it is of type text. However the mails I'm sending are of type HTML. Is there something else I need to check to get rid of the message? Regards, Fiona – Fiona Sep 21 '09 at 9:22
It looks like your web app is putting header information into the body of the message instead of the header. Tell whoever wrote your web app to look for an extraneous carriage return or new-line before the "Content-type" line. – Paul Tomblin Sep 21 '09 at 11:30
Had extraneous carriage returns. Emails are sending beautifully now! Thanks. – Fiona Sep 21 '09 at 13:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.