smtpd/qpsmtpd — pull request #50 by priyadi (2014-06-04 04:10:09+00:00)
Title: Add our headers (Received & Authentication-Results) earlier, just after DATA

SpamAssassin plugin (maybe others too) expects to see our Received header. Previously, this header hasn't been added yet at that stage, leading to LOTS of SpamAssassin false positives (DOS_OUTLOOK_TO_MX, RCVD_IN_PBL, RCVD_IN_XBL, RDNS_DYNAMIC, etc).