Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using postfix-pcre on debian linux.

When I run postmap /etc/postfix/smtp_header_checks.pcre and postmap pcre:/etc/postfix/smtp_header_checks.pcre, I get the following error:

postmap: warning: smtp_header_checks.pcre, line 1: record is in "key: value" 
format; is this an alias file?

What is wrong? I have this in /etc/postfix/smtp_header_checks.pcre:

# Remove sender's IP address information
/^Received: .*/ IGNORE
/^X-Originating-IP:/ IGNORE
share|improve this question
up vote 2 down vote accepted

You don't need to run postmap on postfix's pcre files.

share|improve this answer

You cannot run postmap on PCRE, CIDR, REGEX, or TEXTMAP files.

share|improve this answer
Correction: you can run postmap on a pcre file; it even creates a .db after doing so. However running postmap on a pcre file results in the errors shown in the question. – Mike Pennington Aug 2 '12 at 16:08
Since the context is "a working postfix installation", no, you cannot. – adaptr Aug 3 '12 at 12:33
Help me understand what goes wrong if I did, because postfix was still working fine when I did it – Mike Pennington Aug 3 '12 at 12:43

The space between the colon and period in line one causes the postmap warning message.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.