I think from the pipes. This is most likely. I am sure that you should hire specialists and install a new check valve. Do you have one? It will help once and for all to solve the problem with such fetid liquids and simply secure your home. Look at https://www.pomwaterproofing.ca/back-water-valve-installation/ - you can always call the wizard any day. My friend generally called on Sunday, because his house was on the verge of disaster. And everything was resolved very efficiently and quickly.