The adrenal medulla may mediate the increase in pineal melatonin synthesis induced by stress, but not that caused by exposure to darkness.
Lynch HJ, Ho M, Wurtman RJ. The adrenal medulla may mediate the increase in pineal melatonin synthesis induced by stress, but not that caused by exposure to darkness. J Neural Transm. 1977; 40(2):87-97.