I've trying to set up some filters from spam mail on our Microsoft Exchange server.
I need to check the letter ad spam if there is in header "Recieved" more then 3 dots and it doesn't containt word "outlook"
Checking dots can be done by regex .*\..*\..*\..*
Checking if string doesn't contain word "outlook" can be done by regex ((?!outlook).)*$
I try to unite then in one expression ^(?=.*\..*\..*\..*)(?=((?!outlook).)*$)
but doesn't work:(
What am I doing wrong?