I've heard that if you leave the door open and take the detergent drawer out when the machine is not running then there's airflow through the machine and it doesn't get moldy or smelly.
No personal experience though as I have a top loader.
What they don't tell you is about the spider arm on the back of the drum. It is caked with soap scum and it can't be cleaned.
If you get gray grease marks on your clothes out of the blue and can't figure it out, I can.
It is this soap scum that has been building up for months/years on the spider arm and pieces break loose.