g...@holiness.ch: > If I understand correctly, without the if-endif conditional, the only way to > exit header_checks before reaching the end of the file is if a REJECT action > is matched. There's no way for me to say "This email is from my wife, so > accept the email and exit header_checks immediately":
According to http://www.postfix.org/CONTENT_INSPECTION_README.html, header_checks and body_checks implement light-weight content inspection. If you have a spam problem, use a real content filter. Most header_checks and body_checks actions say "do X and inspect the next input line". Only a few actions are "final", including DISCARD and REJECT. Also as documented, if-endif have line scope, not message scope. Wietse