[Mimedefang] Question about Synthesized Headers

Mark Penkower mark at roycenet.com
Mon Nov 24 13:02:18 EST 2003


Hi,

I have been involved in Numerous sendmail discussions about logging 
headers.  Here is the issue:

I sent myself a test email from within my own domain.  This is what it 
looks like in the mailbox file on our Linux Box:


  From mark at roycenet.com  Mon Nov 24 12:25:48 2003
Return-Path: <mark at roycenet.com>
Received: from server.roycenet.com ([xxx.xxx.xxx.xxx])
         by questnet.roycenet.com (8.12.10/8.12.10) with ESMTP id 
hAOHPmAH018440
         for <mark at roycenet.com>; Mon, 24 Nov 2003 12:25:48 -0500
Message-Id: <5.1.0.14.2.20031124122542.02a65668 at 192.168.253.5>
X-Sender: mark at xxx.xxx.xxx.xxx
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 24 Nov 2003 12:26:09 -0500
To: mark at roycenet.com
From: Mark Penkower <mark at roycenet.com>
Subject: 12:25 P.M.
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

This is a test.

Sendmail comes with a milter called sample that logs all messages.  This is 
what the message looks like in the log file:

Message-Id: <5.1.0.14.2.20031124122542.02a65668 at 192.168.253.5>
X-Sender: mark at xxx.xxx.xxx.xxx
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 24 Nov 2003 12:26:09 -0500
To: mark at roycenet.com
From: Mark Penkower <mark at roycenet.com>
Subject: 12:25 P.M.
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

This is a test.


I also sent myself a message from a hotmail account.  This is what the 
message looks like in the mailbox file on our Linux Box:

  From mpenko at hotmail.com  Mon Nov 24 12:33:45 2003
Return-Path: <mpenko at hotmail.com>
Received: from hotmail.com (bay1-f46.bay1.hotmail.com [65.54.245.46])
         by questnet.roycenet.com (8.12.10/8.12.10) with ESMTP id 
hAOHXiAG018800
         for <mark at roycenet.com>; Mon, 24 Nov 2003 12:33:45 -0500
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
          Mon, 24 Nov 2003 09:33:37 -0800
Received: from 208.202.120.195 by by1fd.bay1.hotmail.msn.com with HTTP;
         Mon, 24 Nov 2003 17:33:37 GMT
X-Originating-IP: [208.202.120.195]
X-Originating-Email: [mpenko at hotmail.com]
From: "Mark Penkower" <mpenko at hotmail.com>
To: mark at roycenet.com
Subject: 12:33 P.M.
Date: Mon, 24 Nov 2003 12:33:37 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <BAY1-F46QsVAhwrZV2X0000bb50 at hotmail.com>
X-OriginalArrivalTime: 24 Nov 2003 17:33:37.0446 (UTC) 
FILETIME=[17C83C60:01C3B2
B1]

Test


This is what the message looks like in the log file:

Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
          Mon, 24 Nov 2003 09:33:37 -0800
Received: from 208.202.120.195 by by1fd.bay1.hotmail.msn.com with HTTP;
         Mon, 24 Nov 2003 17:33:37 GMT
X-Originating-IP: [208.202.120.195]
X-Originating-Email: [mpenko at hotmail.com]
From: "Mark Penkower" <mpenko at hotmail.com>
To: mark at roycenet.com^M
Bcc:
Subject: 12:33 P.M.^M
Date: Mon, 24 Nov 2003 12:33:37 -0500^M
Mime-Version: 1.0^M
Content-Type: text/plain; format=flowed^M
Message-ID: <BAY1-F46QsVAhwrZV2X0000bb50 at hotmail.com>^M
X-OriginalArrivalTime: 24 Nov 2003 17:33:37.0446 (UTC) 
FILETIME=[17C83C60:01C3B2
B1]

Test

As I am archiving messages, I would like to be able to put the log files 
into a Windows clients Mailbox file and have the client recognize each 
message as an individual email.  As you can see from the headers, the 
sendmail milter leaves out things, so my idea dosen't work.  With the 
current header format, If I do this, the Email client sees all the messages 
as 1 message.


Somebody posted the following to the sendmail newsgroup:

Sendmail does not add a Received: header until it either delivers the 
message locally, or relays it onwards.  This happens after any milters have 
finished.

mimedefang.pl does have a function called synthesize_received_header.

Can I use Mimedefang and have this function integrate with my sample milter 
to add the missing headers, so all archived messages will be in normal 
mailbox formats?

If so, please help with how to set up.



Thanks


Mark Penkower






More information about the MIMEDefang mailing list