Hein Roehrig wrote:
> 
> Dear all,
> 
> when I send myself a message without a body, lmptd gets stuck --- it
> eventually times out with a "451 4.3.0 System I/O error" and subsequent
> messages through the same LMTP connection fail as well.
> 
> My setup is Cyrus 2.1.3, Debian postfix 1.1.6-1, configured to deliver
> mail via unix sockets through LMTP, as outlined in several example
> configurations. Things work very well, except for messages which I can
> (re)create by talking SMTP to postfix and sending a message like this:
> 
> $ telnet mymailserver smtp
> Trying x.x.x.x...
> Connected to mymailserver
> Escape character is '^]'.
> 220 mymailserver ESMTP Postfix (Debian/GNU)
> helo myclient
> 250 mymailserver
> mail from: <[EMAIL PROTECTED]>
> 250 Ok
> rcpt to: <roehrig@mymailserver>
> 250 Ok
> data
> 354 End data with <CR><LF>.<CR><LF>
> From: [EMAIL PROTECTED]
> To: roehrig@mymailserver
> .
> 250 Ok: queued as B0708C33D3
> quit
> 221 Bye
> Connection closed by foreign host.
> 
> My next attempt will be to look up the basics of LMTP and try to talk
> LMTP directly with Cyrus lmtpd, but perhaps somebody can already tell me
> whether a null body makes a legal message? If not, then a more
> meaningful lmtpd error message would be very helpful.

Technically, this isn't a valid RFC[2]822 message.  There is supposed to
be a blank line between the headers and body of a message even though
most MTAs accept it.  I _think_ this is what is causing lmtpd to hang
out.  Your timing is good, because I committed a fix for this
yesterday.  Try this patch and see if it solves the problem.

http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpengine.c.diff?r1=1.69&r2=1.70&f=u

Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp

Reply via email to