Postfix Header Checking
I am having problems trying to work out my header checking logic :mrgreen: . I understand that postfix looks in its header check table and runs down the list until it either matches a header flag with a mail header and performs and action i.e REJECT or does not and sends the mail on its way.
I need Postfix to be able to reject all Plain text mail using for example /^content-type:.*text/ REJECT but I also need it to allow some plain text mail originating from a specific sender. This is what I can't figure out. As Postfix works down the list of header checks it needs to perform it will always hit the reject all plain text rule and regardless of me having another rule saying accept plain text mails from acme.com the mail is still rejected.
Is there some sort of IF statements I can use within the regexp tables ?.
Help much appreciated :cool: