The overflow pipe which, I presume, comes out of a tank in the attic is letting water out intermitently. The pipe comes out from above my bedroom window, below the roof.

What could be the cause of...