Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having bother trying to debug an occasional issue on my site. I run a PHP mailer script via the CLI to send mail to a few thousand addresses in batches. Occasionally, I get the following error before all emails have been sent:

sendmail: fatal: No recipient addresses found in message header postdrop: warning: stdin: unexpected EOF in data, record type 78 length 276 postdrop: fatal: uid=10003: malformed input

This only happens from time to time. I'm on a Centos 5 server. Can anyone point me in the right direction for what could be happening here?

share|improve this question

1 Answer 1

It looks as if you pipe your mails through the sendmail program of Postfix. But when your error occurs then the data stream to sendmail suddenly stops. In this case after 276 bytes. So Postfix is unable to send the mail as the header is incomplete and missing the To: field.

One possibility may be that the PHP script gets killed due to low memory. Or other cleanup tasks that eliminate the process that pipes the mail. While sendmail/Postfix is still running as expected.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.