On 10/26/2014 9:08 PM, Dr Michael Daly wrote:
> 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
> 

As documented, postfix header_checks and body_checks process message
input one line at a time.  Expressions cannot span multiple lines.

For full-body matching, you'll need to use a content filter or milter.


  -- Noel Jones

Reply via email to