I have a small a bathroom with a 4 inch axial fan which broke. When replacing it was noticed that the flexi ducting didn't go anywhere and was just vented into the attic and I was advised to vent it outside via the roof.
The roofer recommended made a vent through the roof and replaced the pipe...