Contact your nearest plumbers merchant and explain the problem. They will supply you with a cap that fixes onto the flue pipe to stop rain getting in, but it will allow fumes out...its proper name is a 'terminal'. Frankly, an open flue pipe is plain crazy, and not allowed under installation protocol.
John
April 2008