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:that
There is no sufficient information to go on. The sender simply reportssendmail 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: [EMAIL PROTECTED]"; 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
-- Ben Kennedy, chief magician zygoat creative technical services 613-228-3392 | 1-866-466-4628 http://www.zygoat.ca
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
-- Ben Kennedy, chief magician zygoat creative technical services 613-228-3392 | 1-866-466-4628 http://www.zygoat.ca
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
pgp00000.pgp
Description: PGP signature
