He had to know it was classified if anything came from JWICS.
Clinton probably told Pagliano the server was for personal and foundation email, and he didn’t know that other people were sending her classified info from State.
That’s why he cut a deal. The only question is when he discovered the breach, and whether he reported it as required by law.