Many of the lipids found on the cuticles of insects function as pheromones and communicate information about age, sex, and reproductive status. In Drosophila, the composition of the information-rich lipid profile is dynamic and changes over the lifetime of an individual. However, the molecular basis of this change is not well understood. To identify genes that control cuticular lipid production in Drosophila, we performed a RNA interference screen and used Direct Analysis in Real Time and gas chromatography mass spectrometry to quantify changes in the chemical profiles. Twelve putative genes were identified whereby transcriptional silencing led to significant differences in cuticular lipid production. Amongst them, we characterized a gene which we name spidey, and which encodes a putative steroid dehydrogenase that has sex- and age-dependent effects on viability, pheromone production, and oenocyte survival. Transcriptional silencing or overexpression of spidey during embryonic development results in pupal lethality and significant changes in levels of the ecdysone metabolite 20-hydroxyecdysonic acid and 20-hydroxyecdysone. In contrast, inhibiting gene expression only during adulthood resulted in a striking loss of oenocyte cells and a concomitant reduction of cuticular hydrocarbons, desiccation resistance, and lifespan. Oenocyte loss and cuticular lipid levels were partially rescued by 20-hydroxyecdysone supplementation. Taken together, these results identify a novel regulator of pheromone synthesis and reveal that ecdysteroid signaling is essential for the maintenance of cuticular lipids and oenocytes throughout adulthood. Pheromones are used by many animals to control social behaviors such as mate choice and kin recognition. The pheromone profile of insects is dynamic and can change depending on environmental, physiological, and social conditions. While many genes responsible for the biosynthesis of insect pheromones have been identified, much less is known about how pheromone production is systemically regulated over the lifetime of an animal. In this work, we identify 12 genes in Drosophila melanogaster that play a role in pheromone production. We characterized the function of one gene, which we name spidey, and which encodes a steroid dehydrogenase. Silencing spidey expression during the larval stage results in the rapid inactivation of an essential insect steroid, 20-hydroxyecdysone, and developmental arrest. In adults, spidey is needed for maintaining the viability of oenocytes, specialized cells that produce pheromones and also regulate energy homeostasis. Our work reveals a novel role for ecdysteroids in the adult animal and uncovers a regulatory mechanism for oenocyte activity. Potentially, ecdysteroid signaling serves as a mechanism by which environmental or social conditions shape pheromone production. Exploitation of this conserved pathway could be useful for interfering with the mating behavior and lifespan of disease-bearing insects or agricultural pests.