Now that the drains have been kicked into touch this is starting to sound more and more like the slow demise of my own unlamented dishwasher (see post below from last week about insufficient water).
What had happened was that gunk built up in a horizontal pipe that runs between the sump of the machine and the system that regulates the water flow around the machine. Although I'd used all sorts of diswasher cleaners on it they'd clearly had little or no effect. I even tried caustic soda a couple of times. This improved things for a while but seemed a bit drastic as a long term solution (no pun intended).
When I finally gave up, bought a new machine and worked out how to open up the old one the gunk was obvious. It's a sort of mixture of dead food and what looks like limescale, which was unexpected, because the water is pretty soft in our area.
If your smell is a result of reduced waterflow through the machine it might be worth taking a look at this pipe (and maybe other bits of the waterflow controls).
To open the machine, if it's like my old one, you need to give the lid a smart smack in the middle of the front to push it backwards about half an inch. It will then lift off. Remove the 2 screws on the front edge of the left hand panel and ease it off. You should be able to see the pipe (like a small elephant's trunk) attached to the water controls on the bottom r/h side and disappearing under the machine towards the centre. The pipe on mine was probably 90% blocked. If I'd had the confidence to do it earlier I'd like to have tried cleaning this pipe out to see if it would have made a difference because all the other controls I tested were fine (microswitches, solenoids, etc). It would be quite easy to disconnect the control end of the pipe - it's a push fit - and push the gunk though to the sump where it can be shovelled out. The pipe connects to the side wall of the sump, though you can't see this from ouside, not the visible outlet on the floor of the sump.
Good luck and wear gloves!