Heat exchange surfaces arranged inside a flange