Wietse Venema wrote: > Angus March: > >>> No, that was a WARNING. >>> >>> warning: -f option specified malformed sender >>> >>> If there is an ERROR, the Postfix sendmail command will NOT enqueue >>> the message, and it will return a non-zero exit status code as >>> defined in /usr/include/sysexits.h. >>> >>> >> That part is a warning, but >> sendmail: fatal: No recipient addresses found in message header >> > > That is NOT a WARNING. > > That is an ERROR. > > If there is an ERROR, the Postfix sendmail command will NOT enqueue > the message, and it will return a non-zero exit status code as > defined in /usr/include/sysexits.h. >
Maybe I wasn't clear. That error was generated, but the exit status was normal. Here's the source code, w/the debug message: pid_t pidReturned = waitpid(m_pidSendMail, &status, 0); if (pidReturned == -1) { g_pLog->LogLine("Error calling waitpid() on the sendmail process", true); bSuccess = false; } else { m_pidSendMail = -1; bool bTerminatedNormally = WIFEXITED(status); g_pLog->LogLine("The exit status was normal: " + LtoA(bTerminatedNormally) + " and the exit code: " + LtoA(status)); The debug message generated was: The exit status was normal: 1 and the exit code: 0 And finally, what was sent to the standard error: sendmail: warning: -f option specified malformed sender: angus uducat.com sendmail: fatal: No recipient addresses found in message header The Postfix I'm using is the rpm that comes with SLE 10: postfix-2.2.9-10.23. If what you say is correct, then this sendmail operation is buggy.