The most common cause of the dishwasher stinking is bacteria. Food residues that get stuck are to blame; especially fish, eggs and fats cause bad smells. You may have noticed that fish smells linger for an especially long time—here’s how to get rid of them in your kitchen. If you’ve pan-fried a salmon, for example, try not to just plop your utensils in the dishwasher. Scrape off what you can and then rinse the pans, bowls and plates before you stack them in the dishwasher.
If you don't turn the machine on right away, it’s a good idea to leave the door open a little. This will allow moisture to escape, making bacteria feel less at home.
In rare cases, gases rising from the drainpipe or incorrectly connected hoses can be the reason for unpleasant odors. In this case, the machine starts to smell when filling or drying—you’ll need a plumber in this case, but it is rarely the cause!