How do I keep a front-load washer from smelling?

Run the Clean Washer cycle with one product your manual allows: a washer cleaner or plain liquid chlorine bleach. Leave the door open after loads so the drum can dry.