My husband's work shirts often get stained in the underarms. We think it was caused by the deoderant he used. I searched high and low for a solution to get the stains out. I tried many different things.
What works best is to get a spray bottle, fill it with vinegar and spritz both the inside and outside of the shirt just prior to washing. Wash as normal. Stains disappear.