3

I am using postfix-pcre on Debian Linux.

When I run:

postmap /etc/postfix/smtp_header_checks.pcre

or

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
Éric
  • 123
  • 7

3 Answers3

6

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

1

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

adaptr
  • 16,746
0

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

dan
  • 11