<div dir="ltr">Yes, that is definitely a problem.  This must be a bug in <a href="http://msmail.pm">msmail.pm</a> causing this.  The header functions had to be rewritten to be postfix independent.  It is not checking for a continuation line at the end of the header. I will take a look.</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 7, 2018 at 10:17 PM Mark Sapiro <<a href="mailto:mark@msapiro.net">mark@msapiro.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Shawn Iverson wrote:<br>
<br>
> There's a performance fix in this commit that should help with most of<br>
> this.  The crashing is likely from partially written messages in the<br>
> milterin queue as a result of not writing the file in a single pass.  I<br>
> hope to get a few more issues resolved before doing another release.<br>
> <br>
> <a href="https://github.com/MailScanner/v5/commit/5083b4e0f0eecbec84a5ab94538b0ffbe35f90f1" rel="noreferrer" target="_blank">https://github.com/MailScanner/v5/commit/5083b4e0f0eecbec84a5ab94538b0ffbe35f90f1</a><br>
<br>
<br>
I've been doing a bit more testing. I installed the above change, and<br>
even with that I see this issue.<br>
<br>
I submit a message whose headers end with<br>
<br>
MIME-Version: 1.0<br>
Content-Type: multipart/alternative;<br>
        boundary="b1_f5bca29580e2b9cb455f487aa1a5bd28"<br>
<br>
And the resultant message after MailScanner has headers ending with<br>
<br>
MIME-Version: 1.0<br>
Content-Type: multipart/alternative;<br>
X-msapiro-MailScanner-ID: 12CA95A5DC.AD7FE<br>
X-msapiro-MailScanner: Found to be clean<br>
X-msapiro-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br>
        score=1.132, required 6, DKIM_SIGNED 0.10,<br>
        HEADER_FROM_DIFFERENT_DOMAINS 0.00, MIME_NO_TEXT 1.00,<br>
        RCVD_IN_DNSWL_NONE -0.00, T_DKIM_INVALID 0.01, T_MIME_MALF 0.01,<br>
        T_TVD_MIME_NO_HEADERS 0.01, UNPARSEABLE_RELAY 0.00)<br>
X-msapiro-MailScanner-SpamScore: s<br>
X-msapiro-MailScanner-From: <a href="mailto:mark@msapiro.net" target="_blank">mark@msapiro.net</a><br>
X-Spam-Status: No<br>
        boundary="b1_f5bca29580e2b9cb455f487aa1a5bd28"<br>
<br>
I.e. the MailScanner report headers are inserted before the last line of<br>
the headers rather than appended after. This is not always a problem,<br>
but in this case, it causes the 'boundary=' to be separated from the<br>
'Content-Type:' which is a problem.<br>
<br>
-- <br>
Mark Sapiro <<a href="mailto:mark@msapiro.net" target="_blank">mark@msapiro.net</a>>        The highway is for gamblers,<br>
San Francisco Bay Area, California    better use your sense - B. Dylan<br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson, CETL<div>Director of Technology</div><div>Rush County Schools</div><div>765-932-3901 x1171</div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ" width="89" height="96"></div><div><img src="https://docs.google.com/uc?export=download&id=1aBrlQou4gjB04FY-twHN_0Dn3GHVNxqa&revid=0Bw5iD0ToYvs_RnQ0eDhHcm95WHBFdkNRbXhQRXpoYkR6SEEwPQ" style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>