<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have examined the spool files produced by both
version 3 and 4 of mailscanner and think that there may be a sight bug which is
preventing the rewriting of certain header fields. Version 3 which works,
specifies after the header length of these fields a character (F in the From:
header, T in the To: header). Version 4 leaves out these letters. The exim
specification suggest that these letters should be there and inserting them in
files produced by version 4 and forcing delivery gives me mail with the headers
rewritten perfectly. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>__________________________________________________________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>An excerpt from section 56 the Exim
3.3 specification is reproduced below</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<P>The flags at present contain only one bit, which is set for <EM>one_time</EM>
addresses. It indicates that <<EM>parent number</EM>> is the offset in the
recipients list of the original parent of the address. The third number of the
trio is for future expansion and is currently always zero. A blank line
separates the envelope and status information from the headers which follow. A
header may occupy several lines of the file, and to save effort when reading it
in, each header is preceded by a number and an identifying character. The number
is the number of characters in the header, including any embedded newlines and
the terminating newline. The character is one of the following: <PRE><<EM>blank</EM>> header in which Exim has no special interest
B <EM>Bcc:</EM> header
C <EM>Cc:</EM> header
F <EM>From:</EM> header
I <EM>Message-id:</EM> header
P <EM>Received:</EM> header -- P for `postmark'
R <EM>Reply-To:</EM> header
S <EM>Sender:</EM> header
T <EM>To:</EM> header
* replaced or deleted header
</PRE>
<P>Deleted or replaced (rewritten) headers remain in the spool </P>
<P><FONT face=Arial
size=2>__________________________________________________________________________________________</FONT></P></DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Ray Gardener<BR>CIS<BR>Sheffield Hallam University<BR>Howard
Street<BR>Sheffield<BR>UK<BR>S1 1WB<BR>(44) 0114 225 4926</DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=R.A.Gardener@shu.ac.uk href="mailto:R.A.Gardener@shu.ac.uk">Ray
Gardener</A> </DIV>
<DIV><B>To:</B> <A title=MAILSCANNER@JISCMAIL.AC.UK
href="mailto:MAILSCANNER@JISCMAIL.AC.UK">MailScanner mailing list</A> </DIV>
<DIV><B>Sent:</B> Monday, January 20, 2003 11:06 AM</DIV>
<DIV><B>Subject:</B> Version 4, Exim and header rewrites</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I upgraded from version 3 to version 4 of
Mailscanner last week and found that the header rewrites configured in my Exim
3.36 configuration no longed worked. Briefly we rewrite all internal addresses
with an external form before passing the mail to the outside world.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>e.g. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:r.a.gardener@shuexchangebox.shu.ac.uk">r.a.gardener@shuexchangebox.shu.ac.uk</A>
becomes <A
href="mailto:R.A.Gardener@shu.ac.uk">R.A.Gardener@shu.ac.uk</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This rewrite stopped after upgrading to version 4.
Upon just downgrading the installation to version 3 of Mailscanner the
rewriting restarted. Has anyone else seen this? (and of course is there a
fix?)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Ray Gardener<BR>CIS<BR>Sheffield Hallam
University<BR>Howard Street<BR>Sheffield<BR>UK<BR>S1 1WB<BR>(44) 0114 225
4926</FONT></DIV></BODY></HTML>