Just downstream of 'P' traps are 'air admittance valves'
They allow air into sink drain lines when draining grey waste tanks so that a suction isn't created on sink drain lines which would suck the water out of the 'P' traps.
Sometimes that fail to close (age/fatigue etc.) and don't properly close.
When that happens stink from grey waste tanks come back inside RV.
Grey waste (soap scum, food debris, hair, skin cells etc.) can smell as bad as black tank odors.
Most hardware stores will have them.
Easy to replace.....just look for a stub pipe after 'P' traps. They just screw off by hand.
AAV....
