If you vent through the roof condensation will drip back into the interior.
Venting bathroom exhaust fan through wall.
Ductwork is what will connect the fan to the outside.
I recommend that my clients vent their bath fans out a gable wall if at all possible when not using an hrv or erv that is.
Wiring for the exhaust vent fan light is routed to wall switches that in this case will turn on the fan if the light over the shower is also switched on.
If your exterior siding is vinyl or fiber cement you will have an easier time cutting the hole.
If you vent through a soffit where attic vents are often located the moisture will get sucked back up into the attic or roof venting.
No matter the location of the bathroom you can vent the exhaust fan through the wall.
The exhaust duct using solid metal steel in this case is routed through the ceiling out over the wall top down through a soffit or roof eaves overhang and then enclosed against pest entry.
There are really only three venting options.
If you want to vent a bathroom fan through an exterior wall you will have to cut a 3 inch or 4 inch hole with a hole saw drill bit.
There aren t many options for routing an exhaust fan to the outside of the house.