atom feed14 messages in net.sourceforge.lists.courier-users[courier-users] Re: "sendmail: Unable...
FromSent OnAttachments
Ben KennedyNov 5, 2003 1:30 pm 
Jon NelsonNov 5, 2003 2:58 pm 
Ben KennedyNov 7, 2003 8:27 am 
Sam VarshavchikNov 7, 2003 8:53 pm 
Ben KennedyNov 7, 2003 9:00 pm 
Sam VarshavchikNov 7, 2003 9:52 pm 
Ben KennedyNov 25, 2003 8:47 am 
Ben KennedyNov 27, 2003 8:22 am 
Sam VarshavchikNov 27, 2003 8:44 am 
Jon NelsonNov 27, 2003 8:48 am 
Jon NelsonNov 27, 2003 9:26 am 
Jon NelsonNov 27, 2003 9:50 am 
Mitch (WebCob)Nov 28, 2003 9:08 am 
Jon NelsonNov 28, 2003 10:24 am 
Subject:[courier-users] Re: "sendmail: Unable to submit message."
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Nov 27, 2003 8:44:46 am
List:net.sourceforge.lists.courier-users

Ben Kennedy writes:

This remains a problem.

The empirical evidence is that Courier's sendmail is broken. Am I incorrect? What other diagnostics can I provide?

What you can do is instead of piping the message directly to sendmail, save it into a temporary file first. Then, if the message is rejected, you have its exact copy in a file, and can submit it via the command line to see if you have a reproducible test case.

-ben

On 25 11 2003 at 11:47 am -0500, Ben Kennedy wrote:

On 07 11 2003 at 11:53 pm -0500, Sam Varshavchik wrote:

There is no sufficient information to go on. The sender simply reports that sendmail failed with a non-zero exit status. sendmail normally reports an error message, before terminating with a non-zero exit status. The shell script that invokes sendmail must be modified to capture the error message.

Sam et al.,

I'm following up on this thread I started a couple of weeks ago, with new information.

I modified my client's CGI script to dump sendmail's output to a temp file, so that I was able to examine it next time it fails. It failed this morning. The message that sendmail is putting to stdout is "511 Headers specify no receipients." (sic).

This does not make sense, because there is most definitely a recipient being specified (it is hard-coded in the script). The first few relevant lines of the Perl look like this:

open (MAIL,"|$mailer >/tmp/mei-out-$$") || &CgiError ("Problem with sendmail: $!"); print MAIL "To: know@example.com\n"; print MAIL "Subject: Website Application: $in{firstname} $in{lastname} has applied via the web site!\n"; print MAIL "From: $in{email} ($in{firstname} $in{lastname})\n\n"; print MAIL <<EOMAIL; stuff here... etc.

$mailer is previously declared as courier's sendmail and the other variables are from the form. I've changed the email address to protect privacy, but as I've indicated, the script does often work (sends the mail) without error.

It seems that sendmail is sometimes randomly deciding that there are no recipients.

Am I doing something wrong here, or is something in submit.C on crack?

-ben