On Thu, Jul 05, 2001 at 04:09:51PM +0200, [EMAIL PROTECTED] wrote:
> 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();"
NO!
These broken clients and/or servers are violating RFC821/RFC2821. It is
_explicitely_ stated there that bare linefeeds must not be accepted.
Do you know the influences this mkodification has? Did you check if qmail
sends out these mails with bare linefeeds then? Does it pass this broken
nonsense to mdas? does it possibly write this nonsense to the disk? You can
spend lots of hours to search for these influences without beeing sure you
find every.
It's nonsense to work around broken foreign systems. Let them fix their side
to participate on this thingy called "internet".
--
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)