TLR2 was pharmacologically blocked to determine its role in E protein-related depression-like behaviors and dysosmia in mice. Here, TLR2 is linked to major depressive disorder.