Postfix Header Checks editor

Oracle Linux 7.9 on Vultr VPS, 1 cpu, 2g ram 50g disk
Webmin 1.990, Virtualmin 6.17
Adding rules to pcre header_checks does not allow “!” to invert sense of the match.
Example: !/From:.*.(com|net)/ REJECT is not allowed, but works perfectly if the header_checks file is edited manually. This would be a nice feature of the Virtualmin editor.

This is a great feature which I use to filter out spammers:
if /^From:.*>?$/
!/.+.(com|org|net|edu|gov|uk|ca|au)>?$/ REJECT
/.+?(testmyallergy|ipost|cp20|sendgrid).\w{3}>?$/ REJECT
/.+?.(action-learning|pactera)…+?>?$/ REJECT
endif

bill aka Kephra

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.