Mice fed a diet high in sodium had increased immune cell activity in their skin that helped ward off infection. Karen Hopkin reports