Door frame pulling away from wall
Long (3") screws (3 or 4) through the jamb into the framing of the house should do it. Be careful not to drive them too tight; otherwise you'll warp the jamb and the door will fit loosely. In a perfect world, you'd predrill the jamb with a drill bit big enough that the screw goes through it readily (but not too loose). If you have the same problem on the hinge side, replace one screw per hinge with a long one. Same caution about overtightening applies (and it would be worse on this side if you did it wrong).