I have a new dishwasher, it's a LG and the problem was happening with my old Bosch also. Even if I clean out the filter, even the first time I ran it - it stinks when I open it after it runs.
It smells like fishy lake water. Could there be something not connected properly, like the garbage disposal or hoses or pipes, that maybe have white algae? Sorry I'm throwing it all out there now :)