Qmail / Zend Mail – RFC 5322 compliant

Epodax asked:

My company is getting spammed by itself, or rather by it’s Qmail, we’ve got a few automated processes sending out e-mails with Qmail and Zend Mail.

I’m not a expert in either of these, (I know literally nothing about them), and the ‘spam e-mails’ are Qmail telling us that a series of e-mails being sent isn’t RFC 5322 compliant.

Is there a way for me to locate what is generating these error e-mails? Or a place where I can find out what e-mails it’s trying to deliver but can’t.

This is the mail we recieve

From: [email protected]
[mailto:[email protected]]
Sent: 10. september 2013 15:10
To: [email protected]
Subject: failure notice

Hi. This is the qmail-send program at www.company.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]>: failed after I sent the message.
Remote host said: 550 5.7.0 (BAY0-MC3-F46) Message could not be delivered.
Please ensure the message is RFC 5322 compliant.

--- Below this line is a copy of the message.

Return-Path: <[email protected]>
Received: (qmail 25746 invoked by uid 0); 10 Sep 2013 15:10:02 +0200
Message-ID: <[email protected]>
To: user <[email protected]>
Date: Tue, 10 Sep 2013 15:10:02 +0200
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

My answer:

Your From: header has no value. This is a pretty blatant violation of RFC 5322. Fix your application so that it provides a valid value for the From: header.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.