On Thu, 5 Jul 2001, Henning Brauer wrote:

> On Thu, Jul 05, 2001 at 02:25:41AM -0700, Nilesh Naik wrote:
> > which says "stray new line detected, closing
> > connection"  whenever my smtp message body contains a
> > newline charechter,
>
> http://cr.yp.to/docs/smtplf.html
>
> > 2)me how can i fix this problem ,
>
> fix the broken clients.
>

This is the most common answer but not the best one. You can't possibly
fix all broken clients for one thing, and for another: there are broken
servers as well (mostly microsoft servers) and you can't say to those as
well to get "fixed". The solution I apply is simply accepting these mails
as well. Commenting out 3 lines in qmail-smtpd.c does the trick for me,
the 3 lines being: "if (ch == '\n') straynewline();"

Franky

Reply via email to