Bad smell from disherwasher - is this a bad setup?
I think that the pipe from the dishwasher does not have a high point before its connection to the sink drain. So water flows from the sink into the dishwasher drain pipe and sits there. All you need to do is clamp the dishwasher drain pipe to near the top of the cabinet right before the connection with the sink drain.