i think there are two different processes here.
I do not have a dryer, and line dry my clothing. Instead of fabric softener (which in my view is just for making clothes smell good) I have lately been using vinegar with either essential oil or some sort of fragrance in the rinse water. It works pretty well, but like any other treatment, once you wear the clothes the smell seems to dissipate pretty quickly.
But that is just for a light residual smell on the clean clothes. Deodorant is another thing. For that I'm at this moment brewing some spray from this recipe. https://www.reformationacres.com/2015/09/herbal-deodorant-spray-recipe.html
It's just an alcohol-based spray deodorant, kills the bacteria in your pits. It works well enough (you will keep sweating, of course, but the bacteria seems to be the issue for BO).