The rule not work postmap -q "Subject: [KIS] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: ' 10.54.130.188:8020'. You may need to add u'10.54.130.188' to ALLOWED_HOSTS." regexp:/etc/postfix/header_checks WARN
/^Subject:.*You may need to add.*/ DISCARD BLOCK_TEMPORAL any ideas?? On Fri, Apr 14, 2023 at 3:50 PM Viktor Dukhovni via Postfix-users < postfix-users@postfix.org> wrote: > On Fri, Apr 14, 2023 at 03:31:17PM -0300, SysAdmin EM via Postfix-users > wrote: > > > Sorry for such a basic question but I couldn’t find a solution on my > > part. I’m trying to block a Subject using header_checks but it’s not > > working. > > > > This is my rule: > > > > /^Subject:.*Invalid HTTP_HOST header.*/ DISCARD SUBJECTALERT > > This looks OK, and expects a "Subject:" header. > > > I used postmap to test the rule but not match. > > > > postmap -q "[KIS] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: ' > 10.54.130.188:8020'. You may need to add u'10.54.130.188' to > ALLOWED_HOSTS." regexp:/etc/postfix/header_checks > > This is not a "Subject:" header. Perhaps you meant to type: > > postmap -q "Subject: [KIS] ERROR (EXTERNAL IP): Invalid HTTP_HOST > header: '10.54.130.188:8020'. You may need to add u'10.54.130.188' to > ALLOWED_HOSTS." regexp:/etc/postfix/header_checks > > -- > Viktor. > _______________________________________________ > Postfix-users mailing list -- postfix-users@postfix.org > To unsubscribe send an email to postfix-users-le...@postfix.org >
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org