In most cases, you can help save your kitchen from a smelly dishwasher by following these simple maintenance tips:
Clean the filter to avoid food particle buildup at least once a month
Avoid overstuffing the racks so that water and soap can easily pass through dishes and break down debris
Use dishwasher cleaners, like this option from affresh, once a month to reduce odor-causing residues