Maybe the solution:
config spamfilter profile
set local-override enable
Your tip fixed the problem. Thanks for your input.
I am trying to find out in which version the bit flipped because it always worked perfectly until recently after applying some updates on the fortigate.