You can buy extractor fan covers – we’ve got one like this:
Extractor Duct Cover
Just make sure it is the correct diameter for your ducting.
In our previous home, we had a roof tile vent & had a problem with the steam condensing & running back down. After sticking some insulation around the pipe, the problem completely went away.
We didn’t bother with a condensation trap.
I don’t think it matters too much where you fit the fan, so long as the run on either side isn’t too long – it shouldn’t be for one of those manrose inline fans.
Have a bit of a think about sound insulation as well when positioning it. Our Aventa inline fan is mounted to the joists in the loft & it is definitely a bit droney from the vibrations being transmitted, but ours vents through the soffit & not the roof as such.
If I was in a position to raise up the fan, I’d consider hanging it from the roof screwed to a simple platform to isolate the vibrations.
It’s how the Nuaire Positive Ventilation systems can be mounted & seems like a good idea.