Skip to content

Knowledge base

Answers to common questions about your services, accounts and support.

← All articles

Postfix Rejecting Emails – “Header_Checks Bad Syntax”

Updated December 1, 2026

Cause

Incorrect regex in /etc/postfix/header_checks

Fix

Validate syntax
Example correct format:

/^Subject:.*(Large US\\$ amounts)/ DISCARD

Compile map:

postmap header_checks

Restart postfix.

Still stuck? E-mail hello@inderkochar.in and I’ll help.