I noticed this email today about IF ... ENDIF. I didnt know about it yet so I have been reading and looking at examples.
I can understand some but not all yet. The examples with matching on just an IP or CIDR are easy to see. But can IF ... ENDIF in Postfix be used to make this .pcre simplified? header_checks.pcre /^(To|From|Cc|Reply-To):.*email1@example1\.com*/i REJECT some comment 1 /^(To|From|Cc|Reply-To):.*user2@domain2\.com*/i REJECT some comment 2 /^(To|From|Cc|Reply-To):.*other3@gmail\.com*/i REJECT some comment 3 Could it be IF /^(To|From|Cc|Reply-To):.*/ /.*email1@example1\.com*/i REJECT some comment 1 /.*user2@domain2\.com*/i REJECT some comment 2 /.*other3@gmail\.com*/i REJECT some comment 3 ENDIF Or is this not the right usage for it?