Hi
The 's' modifier is not working in a body_checks regex entry within
postfix 2.11.1, but it does work in an online regex checker eg regex101:

/((?=.*website)|(?=.*mywebsite\.com\.au))((?=.*purchase)|(?=.*great)).*/s
REJECT

eg a test file is REJECTED if it has contents:
website great
but in my postfix it is NOT rejected if the two words in the test file are
separated by a carriage return:
website
great

(am testing via:
postmap -q - pcre:/etc/postfix/body_checks < /etc/postfix/testfile

Thanks
Michael

Reply via email to