On Mon, Jun 10, 2019 at 03:51:17AM -0700, Den1 wrote: > Just one teeny tiny comment. Header_checks will trigger before procmail, > sieve and so on therefore I am pretty much out of luck. Empty subject fields > will be rejected before either procmail or sieve inserts / replaces the > subject field (header) in question.
Postfix header checks are by default not enabled, so do not reject empty subjects by default, and can't reject messages with a missing subject. You don't have to reject empty subjects. > Are there any ways to run procmail before header_checks Only by somehow using procmail as content_filter, for which it is probably not well suited. So basically, no... > or is my best bet to move it all to procmail? You can use a Sieve milter, proxy filter, or defer the processing to delivery, but then you've already accepted the message, and should not reject it. You can tag it as spam, and have it delivered to a suitable sub-folder, or just leave the MUA to deal with the tags. -- Viktor.