On Sun, 2005-05-08 at 02:48 +0000, Aaron Stone wrote:
> > if no mime headers are found in incomming lmtp message, lmtp hangs
> > instead of returning error.
> >     
> > May  7 10:06:55 sanatana dbmail/lmtpd[46815]: mime_readheader(): no valid
> > mime h
> > eaders found
> > May  7 10:06:55 sanatana kernel: May  7 10:06:55 sanatana
> > dbmail/lmtpd[46815]: m
> > ime_readheader(): no valid mime headers found
> 
> The only thing I can figure is that the message is totally malformed and
> never ends in ".\r\n", which is what discard_client_input() expects to see
> before returning. What we can do is to print back the error message
> *before* calling discard_client_input(), and to add arguments to
> discard_client_input() telling it about some possible "OK" responses the
> client might send to indicate that it understood the error message.

Have lmtpd yell real loud with an error if it sees a bare "\n" (one not
preceded by a "\r") and die immediately.

Real LMTP clients won't do that, and you can catch 'em real quick that
way...

-- 
Internet Connection High Quality Web Hosting
http://www.internetconnection.net/

Reply via email to