Yevheniy Demchenko writes:

<---------end of email----------->
there was no <CR><LF> originally after "-----------0000000D.01C6C8EB--"
in the queued email.

Issue was resolved by changing following lines in
module.esmtp/esmtpclient.c:
line 2294 to
if (dowritestr("\r\n.\r\n") || writeflush())
and line  2477 to
if (dowrite("\r\n.\r\n", 5) || writeflush())    return (-1);

Don't think it's a proper solution, i believe, problem is somwhere else.

Correct.  Queued mail should not have an ending line without a newline.

I'm making a guess that the original spam had a null byte in the last line. I'm guessing that that's the real problem.

Index: courier/submit.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/submit.C,v
retrieving revision 1.54
diff -U3 -r1.54 submit.C
--- courier/submit.C    16 Dec 2005 01:37:38 -0000      1.54
+++ courier/submit.C    31 Aug 2006 22:28:24 -0000
@@ -1708,8 +1708,8 @@

                if (i != EOF || line.GetLength())
                {
-                       line += '\n';
                        my_rcptinfo.submitfile.Message(line);
+                       my_rcptinfo.submitfile.Message("\n");
                }
                if (i == EOF)   break;



This is not going to fix corrupted messages already in the queue, but should stop any more of them.


Attachment: pgpsdio9lbw9s.pgp
Description: PGP signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to