That's right Viktor. Your are absolutely right. The correct line is header_checks = regexp:/etc/postfix/spamdiscard
and running this: postmap -q "X-Spam-Flag: YES/" regexp:/etc/postfix/spamdiscard returns no errors. The postmap -q "X-Spam-Flag: YES/" regexp:/etc/postfix/filter is a typo as I was doing it manually while copy-pasting my config for the first time, I am so sorry about that. -- View this message in context: http://postfix.1071664.n5.nabble.com/header-checks-not-working-tp36845p70581.html Sent from the Postfix Users mailing list archive at Nabble.com.