You are right about the gut thing. A lot of our immune system is in the gut.
Mitochondria and the Gut as crucial hubs for the interactions of melatonin with sirtuins, inflammation, butyrate, tryptophan metabolites, and alpha 7 nicotinic receptor across a host of medical conditions.
https://melatonin-research.net/index.php/MR/article/view/30