Yeah a couple of months ago I solod a sorceror (ok so not a mage, but similar) through the game. Although I did remove the XP cap to make it more fun in the later stages.
U definitely need to choose Melf's minute meteors at the beginning and stoneskin and mirror image. Polymorph self is very useful especially when fighting liches. The green slime form has 100% magic resitance. It is most definitely possible with ANY class or kit to solo the game. Hehe, I did a barbarian b4 that and he got to level 40. hehe, he was doing more damage to Firkraag when I fought him then Firkraag was doing to him. Not often u beat the dragons in melee. Oh yeah he was a half-orc barbarian and had over 200HP and 19 STR, hehe... ahh memories