If the door itself is bowed, there is little you can do to fix that. You might consider having a new door made, incorprating the glass panel from the old door.
If you decided to just live with the door, then we have to determine if either the door or the jamb , or both, are out of square. It is certainly common for the jambs to be out of square. It is not uncommon to use little wedges on the door to account for this. The problem with this is you also have to start planing the edges and trimming the top or bottom. Pretty soon you have a trapezoidal shaped door, and are trying to match that to a trapezoidal jam.\
I would say that if the door is still pretty square, then remove the jamb completely and have a new jam put in square. Best to prehang the door in the new jamb for best fit.