我在debian linux上使用postfix-pcre
。
当我运行postmap /etc/postfix/smtp_header_checks.pcre
和postmap pcre:/etc/postfix/smtp_header_checks.pcre
,出现以下错误:
postmap: warning: smtp_header_checks.pcre, line 1: record is in "key: value" format; is this an alias file?
哪里不对? 我在/etc/postfix/smtp_header_checks.pcre
有这个:
# Remove sender's IP address information /^Received: .*/ IGNORE /^X-Originating-IP:/ IGNORE
你不需要在postfix的pcre文件上运行postmap
。
您不能在PCRE,CIDR,REGEX或TEXTMAP文件上运行postmap。
第一行冒号和句号之间的空格会导致postmap警告消息。