On 27/06/16 15:50, Chip wrote: > So to be clear SPF and DKIM milters have the ability to add headers,
The milter protocol does, and I believe that the vast majority of SPF and DKIM milters available can do so. > then the MDA can make a decision on *that* header Correct, but you need to use a 3rd-party MDA that is capable of this, as I said, I recommend Dovecot LMTP with the pigeonhole (sieve) plugin. I believe that procmail also can do this, and possibly other MDAs. The postfix-included local and virtual MDAs are very simplistic and cannot do this, though. > - I don't want any > more processing based on headers, sender and recipient as the whole > shebang prior to the MDA was supposed to take care of the most critical > part - was it SPF and/or DKIM compliant and if so, add the friggin' > header so the MDA can decide on that and only that element. Right, and it can also decide based on the envelope sender (which you want), among other things. The real advantage that you want here is that it can deliver to alternative IMAP folders based on this criteria, that is something that postfix alone cannot do. As a relatively simple example, I use amavisd-new and Spamassassin to flag mail with a spam header. Then Dovecot LMTP with sieve looks for this header and if it is present it delivers to the user's "Spam" folder. > Am I right here? Pretty much. Peter