Steam boiler with flap system