Machine with an improved bearing lubrication, including a housing (2) and a rotor (5) which is provided on a shaft (6), provided in a rotatable manner in the above-mentioned housing (2) by means of oil-lubricated bearings (7), wherein, inside the housing (2), lubrication ducts (14) to supply and discharge oil to and from the bearings (7), and cooling channels (21, 15) to supply and discharge a cooling agent, are provided which cooling channels (21, 15) open opposite to the shaft (6), in a place between the rotor (5) and a bearing (7).