smtpd/qpsmtpd — pull request #171 by priyadi (2014-12-23 19:12:57+00:00)
Title: Authentication-Results header fix on data_post

Current problems:

* Authentication-Results header is now incomplete, thanks to my pullreq https://github.com/smtpd/qpsmtpd/pull/50.
* Spam filters are unable to take advantage of Authentication-Results header, because the most important info is not there (DKIM and DMARC).

I'm proposing to create another hook in data_post phase (called 'data_post_final' in my patch). The goal is to make the process work as follows:

* After DATA, run DKIM and DMARC plugins (in 'data_post' hook)
* Add our Authentication-Result and Received headers. This is necessary for spam filters.
* Run spamassassin or other anti spam plugins (in 'data_post_final' hook).

Previously, Authentication-Results header is added before DKIM and DMARC run, so their info is not added to Authentication-Results.