You want the 3 axis mutually perpendicular, do this first.
If the axis of the spindle is not parallel to the axis of the X axis, first make sure the gib of the head is properly fitted and adjusted. Then look at possibly scraping the dovetail of the head.
How much is the spindle axis off?