小编Chr*_*ell的帖子

用于重定向的 Postfix header_checks 不起作用

我正在尝试使用 Postfix header_checks [重定向/前置/拒绝/任何] 传入电子邮件,其中 spamassassin 分数 >= 5。

我可以运行postmap -q - regexp:/etc/postfix/header_checks电子邮件,它会捕获我所期望的(垃圾邮件级别 > 5 的邮件);但是,传入的电子邮件没有任何反应。

这是 /etc/postfix/header_checks

/X-Spam-Level:\s*\*{5,}/ REDIRECT spamtesting@mydomain.com
Run Code Online (Sandbox Code Playgroud)

这是 postconf -n 的输出:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = localhost
myhostname = emaproduction.mydomain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:8891
readme_directory = no …
Run Code Online (Sandbox Code Playgroud)

email postfix

5
推荐指数
1
解决办法
7383
查看次数

标签 统计

email ×1

postfix ×1