This reminds me of a strange, but true story.
I pulled into a rural tree-nursery one time, but it was closed. Rather than turn right around, I kept on going and turned around in a lot behind the building adjacent to the nursery, which is a Christian book store. I looked over at the back of this building and there was a 6" flue pipe protruding from the wall, with a stack going STRAIGHT DOWN off the flue. Originally, it had run straight up the wall, but the single bracket that held it adjacent to the roof had come loose, allowing the whole thing to roate 180-degrees.
Well...I'm thinking this is a recipie for death...so I stopped my truck got out and went inside. I was 40 miles from home and had never been to this store in my life before. I walked in and was like "Hi Mable, long time no see." Because I knew the woman behind the counter. We had worked together for about 10 years, a decade before. I told her the story and she turned off the stores furnace and called the owner to come over.
I haven't been behind that building before or since. What are the odds I'd be there to save my old friend that day? Not very likely. A Christmas miracle, I'd say.
The flue should go out the roof...but if you do hook it to the wall...make sure you don't create a pivot point where one bracket is the only thing that will keep it from pointing down instead of up.
Phil