This is the set up my builders left for me. The drain from the boiler goes into the top of a 4" waste and is covered with a rubber 'cap'. The angle of the photo makes it look like the white pipe does a u-turn but it doesn't, just the crap photographer that I am!
The pipes have been attempted to be sealed with silicone which hasn't bonded at all so I'm left with some condensation coming from the 4" pipe, just the occasional drip, plus a bit of a funky smell when close to the pipe.
Hoping that @pigletjohn could give an opinion in particular