I also suggest lemon juice, I've never tried it in a dishwasher but I use it in the garbage disposal when it gets smelly and it seems to get rid of the smell.