Subject: Sendmail timeout from shell
To: NetBSD <port-mac68k@netbsd.org>
From: chris <cb@mythtech.net>
List: port-mac68k
Date: 04/07/2003 12:56:56
Sorry for asking this here, since I know it is a sendmail question, but 
I'm not having much luck with sendmail related groups.

I'm still fighting my slow CGI processing. I am pretty sure I have 
narrowed it down to sendmail having a MAJOR delay in doing anything. 
Sendmail seems to start, accept the mail, but then waits 60 seconds 
before giving output to indicate that it has accepted anything. (once 
that is complete, sending the actual email happens immediatly).

I've tested this by simply using sendmail from the shell. I've entered 
the following:

>sendmail cb@mythtech.net
>To: cb@mythtech.net
>From: cb@mythtech.net
>Subject: Test
>
>Testing
>.

Sendmail then sits, and does nothing for 60 seconds. It then times out, 
and returns me to the shell prompt. My email is then delivered just fine.

So I think what is happening is, the CGI is waiting for sendmail to 
return to the prompt, and so is delayed 60 seconds while sendmail times 
out.

Anyone have an idea WHY sendmail is waiting until it times out rather 
than accepting the <CRLF>.<CRLF> to indicate input is done? (from what I 
can find in sendmail info, it should be looking for that marker, or an 
end of file for echo'd files to know input is done... it also times out 
with echo'd files as I tried that as well).

Anyone have a clue how to stop it from timing out and rather accept the 
<CRLF>.<CRLF> as the end of input so that it will process in a timely 
manner?

-chris
<http://www.mythtech.net>